Core: Switch Hashable struct to HashAppend function

Former-commit-id: 2a20eca0e75bf4067d390f4f5e446de78f26799c
This commit is contained in:
Lynix
2015-11-18 18:28:56 +01:00
parent 00423c4211
commit 167f3e4a27
9 changed files with 45 additions and 60 deletions

View File

@@ -335,15 +335,11 @@ namespace Nz
return m_array >= rhs.m_array;
}
template<>
struct Hashable<ByteArray>
inline bool HashAppend(AbstractHash* hash, const ByteArray& byteArray)
{
bool operator()(const ByteArray& byteArray, AbstractHash* hash) const
{
hash->Append(byteArray.GetConstBuffer(), byteArray.GetSize());
return true;
}
};
hash->Append(byteArray.GetConstBuffer(), byteArray.GetSize());
return true;
}
}
namespace std