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

Unified Diff: third_party/WebKit/Source/platform/json/JSONValues.cpp

Issue 2776203002: Migrate WTF::Vector::remove() to ::erase() (Closed)
Patch Set: rebase, repatch VectorTest Created 3 years, 9 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 2b9d6a420da15de296804c1a418e3bd0f686645d..9927fae52fe4e2a5bacaa9253741881ebc412396 100644
--- a/third_party/WebKit/Source/platform/json/JSONValues.cpp
+++ b/third_party/WebKit/Source/platform/json/JSONValues.cpp
@@ -344,7 +344,7 @@ void JSONObject::remove(const String& name) {
m_data.erase(name);
for (size_t i = 0; i < m_order.size(); ++i) {
if (m_order[i] == name) {
- m_order.remove(i);
+ m_order.erase(i);
break;
}
}

Powered by Google App Engine
This is Rietveld 408576698