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

Unified Diff: third_party/WebKit/Source/core/dom/WeakIdentifierMap.h

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/core/dom/WeakIdentifierMap.h
diff --git a/third_party/WebKit/Source/core/dom/WeakIdentifierMap.h b/third_party/WebKit/Source/core/dom/WeakIdentifierMap.h
index 8c09f21c9256daa5bb0ae099d1dc6fb29b866f49..4eae8473f2639782fc829c04bcca8f29b2c1d7a4 100644
--- a/third_party/WebKit/Source/core/dom/WeakIdentifierMap.h
+++ b/third_party/WebKit/Source/core/dom/WeakIdentifierMap.h
@@ -86,7 +86,7 @@ class WeakIdentifierMap final
void objectDestroyed(T* object) {
IdentifierType identifier = this->m_objectToIdentifier.take(object);
if (!WTF::isHashTraitsEmptyValue<HashTraits<IdentifierType>>(identifier))
- this->m_identifierToObject.remove(identifier);
+ this->m_identifierToObject.erase(identifier);
}
};

Powered by Google App Engine
This is Rietveld 408576698