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

Unified Diff: third_party/WebKit/Source/wtf/ListHashSetTest.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/HashSetTest.cpp ('k') | third_party/WebKit/Source/wtf/RetainPtr.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/ListHashSetTest.cpp
diff --git a/third_party/WebKit/Source/wtf/ListHashSetTest.cpp b/third_party/WebKit/Source/wtf/ListHashSetTest.cpp
index 4d97e86563eee31f4f01ea2d30d2ecf2a1fda5bf..1c5a35455d3682128372a2184350dbe233a0ffe9 100644
--- a/third_party/WebKit/Source/wtf/ListHashSetTest.cpp
+++ b/third_party/WebKit/Source/wtf/ListHashSetTest.cpp
@@ -645,11 +645,11 @@ struct CountCopyHashTraits : public GenericHashTraits<CountCopy> {
static bool isDeletedValue(const CountCopy& value) { return value.counter() == CountCopy::kDeletedValue; }
};
-struct CountCopyHash : public PtrHash<const int*> {
- static unsigned hash(const CountCopy& value) { return PtrHash<const int*>::hash(value.counter()); }
+struct CountCopyHash : public PtrHash<const int> {
+ 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());
}
};
« no previous file with comments | « third_party/WebKit/Source/wtf/HashSetTest.cpp ('k') | third_party/WebKit/Source/wtf/RetainPtr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698