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

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

Issue 2654033007: Migrate WTF::HashSet::add() to ::insert() [part 2 of N] (Closed)
Patch Set: Created 3 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/DequeTest.cpp
diff --git a/third_party/WebKit/Source/wtf/DequeTest.cpp b/third_party/WebKit/Source/wtf/DequeTest.cpp
index 6751a39805053757aa050efa941bfd4c21ea8bd9..791a5a1c6aa756dcdf6087c7a0527d82030b8aa2 100644
--- a/third_party/WebKit/Source/wtf/DequeTest.cpp
+++ b/third_party/WebKit/Source/wtf/DequeTest.cpp
@@ -288,12 +288,12 @@ HashSet<void*> constructedWrappedInts;
class WrappedInt {
public:
WrappedInt(int i = 0) : m_originalThisPtr(this), m_i(i) {
- constructedWrappedInts.add(this);
+ constructedWrappedInts.insert(this);
}
WrappedInt(const WrappedInt& other)
: m_originalThisPtr(this), m_i(other.m_i) {
- constructedWrappedInts.add(this);
+ constructedWrappedInts.insert(this);
}
WrappedInt& operator=(const WrappedInt& other) {
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/ImageDecodingStore.cpp ('k') | third_party/WebKit/Source/wtf/HashSetTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698