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

Unified Diff: third_party/WebKit/Source/core/dom/IdTargetObserverRegistry.cpp

Issue 2657443005: Migrate WTF::HashSet::add() to ::insert() [part 1 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/core/dom/IdTargetObserverRegistry.cpp
diff --git a/third_party/WebKit/Source/core/dom/IdTargetObserverRegistry.cpp b/third_party/WebKit/Source/core/dom/IdTargetObserverRegistry.cpp
index df29ea23b2a36af522047d73e638c45e9a92c3b5..1df010446c2c8038df77d663796efb48ef3937b8 100644
--- a/third_party/WebKit/Source/core/dom/IdTargetObserverRegistry.cpp
+++ b/third_party/WebKit/Source/core/dom/IdTargetObserverRegistry.cpp
@@ -47,7 +47,7 @@ void IdTargetObserverRegistry::addObserver(const AtomicString& id,
if (result.isNewEntry)
result.storedValue->value = new ObserverSet();
- result.storedValue->value->add(observer);
+ result.storedValue->value->insert(observer);
}
void IdTargetObserverRegistry::removeObserver(const AtomicString& id,

Powered by Google App Engine
This is Rietveld 408576698