1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 19:46:38 +02:00

Store hashes of the last commit instead of the last commit

This commit is contained in:
Adam
2013-02-15 14:22:23 -05:00
parent 73099b82e8
commit d9c18a6072
7 changed files with 75 additions and 73 deletions
+9
View File
@@ -71,6 +71,15 @@ class LoadData : public Serialize::Data
keys.insert(it->first);
return keys;
}
size_t Hash() const anope_override
{
size_t hash = 0;
for (std::map<Anope::string, Anope::string>::const_iterator it = this->data.begin(), it_end = this->data.end(); it != it_end; ++it)
if (!it->second.empty())
hash ^= Anope::hash_cs()(it->second);
return hash;
}
void Reset()
{