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

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

Issue 1611343002: wtf reformat test Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pydent Created 4 years, 11 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: 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 6131edeb565b6bbce0ea57b99e16fc57b0e37f56..25eb277d667dfe05f639fab293b1ea92c191e4ec 100644
--- a/third_party/WebKit/Source/wtf/text/AtomicStringHash.h
+++ b/third_party/WebKit/Source/wtf/text/AtomicStringHash.h
@@ -35,32 +35,30 @@
namespace WTF {
struct AtomicStringHash {
- static unsigned hash(const AtomicString& key)
- {
- return key.impl()->existingHash();
- }
+ 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;
+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(); }
};
-
}
using WTF::AtomicStringHash;
« no previous file with comments | « third_party/WebKit/Source/wtf/text/AtomicStringCF.cpp ('k') | third_party/WebKit/Source/wtf/text/AtomicStringTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698