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

Unified Diff: third_party/WebKit/Source/wtf/VectorTest.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/VectorTest.cpp
diff --git a/third_party/WebKit/Source/wtf/VectorTest.cpp b/third_party/WebKit/Source/wtf/VectorTest.cpp
index a7ad22a1108aca04f7ffdbabfc1f6acb27c3bb4e..2ae71e9e230c1b119bf8e55a3bd992f878c85b97 100644
--- a/third_party/WebKit/Source/wtf/VectorTest.cpp
+++ b/third_party/WebKit/Source/wtf/VectorTest.cpp
@@ -284,12 +284,12 @@ static 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/wtf/HashSetTest.cpp ('k') | third_party/WebKit/Source/wtf/text/AtomicStringTable.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698