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

Unified Diff: third_party/WebKit/Source/platform/json/JSONValues.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/json/JSONValues.cpp
diff --git a/third_party/WebKit/Source/platform/json/JSONValues.cpp b/third_party/WebKit/Source/platform/json/JSONValues.cpp
index 52c4e340a714eb231066ad78e0ba4f1c083cc6d8..2b9d6a420da15de296804c1a418e3bd0f686645d 100644
--- a/third_party/WebKit/Source/platform/json/JSONValues.cpp
+++ b/third_party/WebKit/Source/platform/json/JSONValues.cpp
@@ -341,7 +341,7 @@ double JSONObject::doubleProperty(const String& name,
}
void JSONObject::remove(const String& name) {
- m_data.remove(name);
+ m_data.erase(name);
for (size_t i = 0; i < m_order.size(); ++i) {
if (m_order[i] == name) {
m_order.remove(i);
« no previous file with comments | « third_party/WebKit/Source/platform/heap/HeapTest.cpp ('k') | third_party/WebKit/Source/platform/network/HTTPHeaderMap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698