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

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

Issue 2696183002: Migrate WTF::HashSet::remove() to ::erase() [part 1] (Closed)
Patch Set: one more platform-specific reference Created 3 years, 10 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 dbcdfd9b07694cccc27ece60f74bb71ce638f09f..fedf7a7917567b57c67397fc7d47e19201a903fe 100644
--- a/third_party/WebKit/Source/core/dom/IdTargetObserverRegistry.cpp
+++ b/third_party/WebKit/Source/core/dom/IdTargetObserverRegistry.cpp
@@ -58,7 +58,7 @@ void IdTargetObserverRegistry::removeObserver(const AtomicString& id,
IdToObserverSetMap::iterator iter = m_registry.find(id.impl());
ObserverSet* set = iter->value.get();
- set->remove(observer);
+ set->erase(observer);
if (set->isEmpty() && set != m_notifyingObserversInSet)
m_registry.remove(iter);
}

Powered by Google App Engine
This is Rietveld 408576698