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

Unified Diff: third_party/WebKit/Source/wtf/text/AtomicStringHash.h

Issue 1373773002: Fix check-webkit-style errors in Source/wtf/text/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/wtf/text/Base64.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/text/AtomicStringHash.h
diff --git a/third_party/WebKit/Source/wtf/text/AtomicStringHash.h b/third_party/WebKit/Source/wtf/text/AtomicStringHash.h
index d86d22f6be03895f668612f3144cac0a08125694..6131edeb565b6bbce0ea57b99e16fc57b0e37f56 100644
--- a/third_party/WebKit/Source/wtf/text/AtomicStringHash.h
+++ b/third_party/WebKit/Source/wtf/text/AtomicStringHash.h
@@ -29,36 +29,37 @@
#ifndef AtomicStringHash_h
#define AtomicStringHash_h
-#include "wtf/text/AtomicString.h"
#include "wtf/HashTraits.h"
+#include "wtf/text/AtomicString.h"
namespace WTF {
- struct AtomicStringHash {
- static unsigned hash(const AtomicString& key)
- {
- return key.impl()->existingHash();
- }
+struct AtomicStringHash {
+ static unsigned hash(const AtomicString& key)
+ {
+ return key.impl()->existingHash();
+ }
- static bool equal(const AtomicString& a, const AtomicString& b)
- {
- return a == b;
- }
+ static bool equal(const AtomicString& a, const AtomicString& b)
+ {
+ return a == b;
+ }
- static const bool safeToCompareToEmptyOrDeleted = false;
- };
+ static const bool safeToCompareToEmptyOrDeleted = false;
+};
- // AtomicStringHash is the default hash for AtomicString
- template<> struct HashTraits<AtomicString> : SimpleClassHashTraits<AtomicString> {
- // Unlike other types, we can return a const reference for AtomicString's empty value (nullAtom).
- typedef const AtomicString& PeekOutType;
+// AtomicStringHash is the default hash for AtomicString
+template<> struct HashTraits<AtomicString> : SimpleClassHashTraits<AtomicString> {
+ // Unlike other types, we can return a const reference for AtomicString's
+ // empty value (nullAtom).
+ typedef const AtomicString& PeekOutType;
- static const AtomicString& emptyValue() { return nullAtom; }
- static PeekOutType peek(const AtomicString& value) { return value; }
+ static const AtomicString& emptyValue() { return nullAtom; }
+ static PeekOutType peek(const AtomicString& value) { return value; }
- static const bool hasIsEmptyValueFunction = true;
- static bool isEmptyValue(const AtomicString& value) { return value.isNull(); }
- };
+ static const bool hasIsEmptyValueFunction = true;
+ static bool isEmptyValue(const AtomicString& value) { return value.isNull(); }
+};
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/wtf/text/Base64.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698