Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Unified Diff: net/base/hash_value.h

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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,

Powered by Google App Engine
This is Rietveld 408576698