Core: Switch Hashable struct to HashAppend function
Former-commit-id: 2a20eca0e75bf4067d390f4f5e446de78f26799c
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user