Index: net/base/hash_value.h |
diff --git a/net/base/hash_value.h b/net/base/hash_value.h |
index aa0b9f6e9f80adbce7de9d58e8a79eb5dc667c5a..b8588d5f2fe3a4b43a083ce2b34051e0cb0bacc6 100644 |
--- a/net/base/hash_value.h |
+++ b/net/base/hash_value.h |
@@ -84,11 +84,9 @@ class NET_EXPORT HashValue { |
typedef std::vector<HashValue> HashValueVector; |
- |
class SHA1HashValueLessThan { |
public: |
- bool operator()(const SHA1HashValue& lhs, |
- const SHA1HashValue& rhs) const { |
+ bool operator()(const SHA1HashValue& lhs, const SHA1HashValue& rhs) const { |
return memcmp(lhs.data, rhs.data, sizeof(lhs.data)) < 0; |
} |
}; |
@@ -102,9 +100,9 @@ class SHA256HashValueLessThan { |
}; |
class HashValuesEqual { |
- public: |
- explicit HashValuesEqual(const HashValue& fingerprint) : |
- fingerprint_(fingerprint) {} |
+ public: |
+ explicit HashValuesEqual(const HashValue& fingerprint) |
+ : fingerprint_(fingerprint) {} |
bool operator()(const HashValue& other) const { |
return fingerprint_.Equals(other); |
@@ -113,7 +111,6 @@ class HashValuesEqual { |
const HashValue& fingerprint_; |
}; |
- |
// IsSHA1HashInSortedArray returns true iff |hash| is in |array|, a sorted |
// array of SHA1 hashes. |
bool IsSHA1HashInSortedArray(const SHA1HashValue& hash, |