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

Unified Diff: third_party/WebKit/Source/modules/geolocation/GeolocationWatchers.cpp

Issue 2673543003: Migrate WTF::HashMap::remove() to ::erase() (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/modules/geolocation/GeolocationWatchers.cpp
diff --git a/third_party/WebKit/Source/modules/geolocation/GeolocationWatchers.cpp b/third_party/WebKit/Source/modules/geolocation/GeolocationWatchers.cpp
index 18aca376fbdbcb164cdb09ca0183a9e1e7efc308..b11a54e415859e83a374a1c0d384892f1fa0ea8d 100644
--- a/third_party/WebKit/Source/modules/geolocation/GeolocationWatchers.cpp
+++ b/third_party/WebKit/Source/modules/geolocation/GeolocationWatchers.cpp
@@ -35,7 +35,7 @@ void GeolocationWatchers::remove(int id) {
IdToNotifierMap::iterator iter = m_idToNotifierMap.find(id);
if (iter == m_idToNotifierMap.end())
return;
- m_notifierToIdMap.remove(iter->value);
+ m_notifierToIdMap.erase(iter->value);
m_idToNotifierMap.remove(iter);
}
@@ -43,7 +43,7 @@ void GeolocationWatchers::remove(GeoNotifier* notifier) {
NotifierToIdMap::iterator iter = m_notifierToIdMap.find(notifier);
if (iter == m_notifierToIdMap.end())
return;
- m_idToNotifierMap.remove(iter->value);
+ m_idToNotifierMap.erase(iter->value);
m_notifierToIdMap.remove(iter);
}

Powered by Google App Engine
This is Rietveld 408576698