Index: tests/HashTest.cpp |
diff --git a/tests/HashTest.cpp b/tests/HashTest.cpp |
index c90c377cc25b4adb334bef0106b16b84ac5954cb..c9b1bc967bd852bbf848e8c2f166d8e05da70187 100644 |
--- a/tests/HashTest.cpp |
+++ b/tests/HashTest.cpp |
@@ -120,14 +120,16 @@ private: |
uint32_t* fCounter; |
}; |
-uint32_t hash_copy_counter(const CopyCounter&) { |
- return 0; // let them collide, what do we care? |
-} |
+struct HashCopyCounter { |
+ uint32_t operator()(const CopyCounter&) const { |
+ return 0; // let them collide, what do we care? |
+ } |
+}; |
} |
DEF_TEST(HashSetCopyCounter, r) { |
- SkTHashSet<CopyCounter, hash_copy_counter> set; |
+ SkTHashSet<CopyCounter, HashCopyCounter> set; |
uint32_t globalCounter = 0; |
CopyCounter copyCounter1(1, &globalCounter); |