diff options
Diffstat (limited to 'src/hash.cc')
-rw-r--r-- | src/hash.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hash.cc b/src/hash.cc index 97bf8f785..b59c4f214 100644 --- a/src/hash.cc +++ b/src/hash.cc @@ -14,7 +14,7 @@ Hash::Hash() } -bool Hash::operator == (Hash h2) +bool Hash::operator == (const Hash & h2) const { for (unsigned int i = 0; i < hashSize; i++) if (hash[i] != h2.hash[i]) return false; @@ -22,7 +22,7 @@ bool Hash::operator == (Hash h2) } -bool Hash::operator != (Hash h2) +bool Hash::operator != (const Hash & h2) const { return !(*this == h2); } |