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

Unified Diff: third_party/WebKit/Source/platform/Length.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/platform/Length.cpp
diff --git a/third_party/WebKit/Source/platform/Length.cpp b/third_party/WebKit/Source/platform/Length.cpp
index c8597fcfce93fcb72e770157704cd48b799abfc0..a2296baf62f6d15f08de284a4cf1a09f14232fea 100644
--- a/third_party/WebKit/Source/platform/Length.cpp
+++ b/third_party/WebKit/Source/platform/Length.cpp
@@ -54,7 +54,7 @@ class CalculationValueHandleMap {
void remove(int index) {
ASSERT(m_map.contains(index));
- m_map.remove(index);
+ m_map.erase(index);
}
CalculationValue& get(int index) {
@@ -69,7 +69,7 @@ class CalculationValueHandleMap {
// Force the CalculationValue destructor early to avoid a potential
// recursive call inside HashMap remove().
m_map.set(index, nullptr);
- m_map.remove(index);
+ m_map.erase(index);
} else {
value->deref();
}
« no previous file with comments | « third_party/WebKit/Source/modules/webusb/USB.cpp ('k') | third_party/WebKit/Source/platform/Supplementable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698