diff options
Diffstat (limited to 'tests/HashTest.cpp')
-rw-r--r-- | tests/HashTest.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/HashTest.cpp b/tests/HashTest.cpp index c90c377cc2..c9b1bc967b 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); |