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

Unified Diff: third_party/WebKit/Source/core/dom/URLSearchParams.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/core/dom/URLSearchParams.cpp
diff --git a/third_party/WebKit/Source/core/dom/URLSearchParams.cpp b/third_party/WebKit/Source/core/dom/URLSearchParams.cpp
index 8de28baf4f0cd8efad462c74fe61993109e34f73..3ef11e86ea4d867dfdc9a71d146135ae52a025f4 100644
--- a/third_party/WebKit/Source/core/dom/URLSearchParams.cpp
+++ b/third_party/WebKit/Source/core/dom/URLSearchParams.cpp
@@ -166,7 +166,7 @@ void URLSearchParams::append(const String& name, const String& value) {
void URLSearchParams::deleteAllWithName(const String& name) {
for (size_t i = 0; i < m_params.size();) {
if (m_params[i].first == name)
- m_params.remove(i);
+ m_params.erase(i);
else
i++;
}
@@ -209,7 +209,7 @@ void URLSearchParams::set(const String& name, const String& value) {
m_params[i++].second = value;
foundMatch = true;
} else {
- m_params.remove(i);
+ m_params.erase(i);
}
} else {
i++;

Powered by Google App Engine
This is Rietveld 408576698