about summary refs log tree commit diff
path: root/src/hash.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/hash.cc')
-rw-r--r--src/hash.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hash.cc b/src/hash.cc
index 97bf8f7856f0..b59c4f214831 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);
 }