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

Unified Diff: third_party/WebKit/Source/wtf/HashSetTest.cpp

Issue 1839003002: WTF: De-specialize PtrHash<T>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove extra equal() definitions. Created 4 years, 9 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 | « third_party/WebKit/Source/wtf/HashFunctions.h ('k') | third_party/WebKit/Source/wtf/ListHashSetTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/HashSetTest.cpp
diff --git a/third_party/WebKit/Source/wtf/HashSetTest.cpp b/third_party/WebKit/Source/wtf/HashSetTest.cpp
index 87db991bef9d5fc9826f08189e15935ff25e6f82..d042f267f4ba53860d886ca640fc429128512226 100644
--- a/third_party/WebKit/Source/wtf/HashSetTest.cpp
+++ b/third_party/WebKit/Source/wtf/HashSetTest.cpp
@@ -230,10 +230,10 @@ struct CountCopyHashTraits : public GenericHashTraits<CountCopy> {
};
struct CountCopyHash : public PtrHash<const int*> {
- static unsigned hash(const CountCopy& value) { return PtrHash<const int*>::hash(value.counter()); }
+ static unsigned hash(const CountCopy& value) { return PtrHash<const int>::hash(value.counter()); }
static bool equal(const CountCopy& left, const CountCopy& right)
{
- return PtrHash<const int*>::equal(left.counter(), right.counter());
+ return PtrHash<const int>::equal(left.counter(), right.counter());
}
static const bool safeToCompareToEmptyOrDeleted = true;
};
« no previous file with comments | « third_party/WebKit/Source/wtf/HashFunctions.h ('k') | third_party/WebKit/Source/wtf/ListHashSetTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698