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

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

Issue 2671933002: Migrate WTF::HashMap::add() to ::insert() (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 1df010446c2c8038df77d663796efb48ef3937b8..93b8fe3cc78ed0da57fb14fa11e1febd690b3c9a 100644
--- a/third_party/WebKit/Source/core/dom/IdTargetObserverRegistry.cpp
+++ b/third_party/WebKit/Source/core/dom/IdTargetObserverRegistry.cpp
@@ -43,7 +43,7 @@ void IdTargetObserverRegistry::addObserver(const AtomicString& id,
if (id.isEmpty())
return;
- IdToObserverSetMap::AddResult result = m_registry.add(id.impl(), nullptr);
+ IdToObserverSetMap::AddResult result = m_registry.insert(id.impl(), nullptr);
if (result.isNewEntry)
result.storedValue->value = new ObserverSet();

Powered by Google App Engine
This is Rietveld 408576698