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

@@ -39,15 +39,11 @@ namespace Nz
string[strSize] = '\0';
}
template<>
struct Hashable<String>
inline bool HashAppend(AbstractHash* hash, const String& string)
{
bool operator()(const String& str, AbstractHash* hash) const
{
hash->Append(reinterpret_cast<const UInt8*>(str.GetConstBuffer()), str.GetSize());
return true;
}
};
hash->Append(reinterpret_cast<const UInt8*>(string.GetConstBuffer()), string.GetSize());
return true;
}
}
namespace std