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

Unified Diff: third_party/WebKit/Source/core/html/FormData.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/html/FormData.cpp
diff --git a/third_party/WebKit/Source/core/html/FormData.cpp b/third_party/WebKit/Source/core/html/FormData.cpp
index a64afadf9d63c06b15aa549e4dc5c226bf60677d..4b691864f4957aec887abb4e9e719468306534f3 100644
--- a/third_party/WebKit/Source/core/html/FormData.cpp
+++ b/third_party/WebKit/Source/core/html/FormData.cpp
@@ -117,7 +117,7 @@ void FormData::deleteEntry(const String& name) {
size_t i = 0;
while (i < m_entries.size()) {
if (m_entries[i]->name() == encodedName) {
- m_entries.remove(i);
+ m_entries.erase(i);
} else {
++i;
}
@@ -184,7 +184,7 @@ void FormData::setEntry(const Entry* entry) {
if (m_entries[i]->name() != encodedName) {
++i;
} else if (found) {
- m_entries.remove(i);
+ m_entries.erase(i);
} else {
found = true;
m_entries[i] = entry;
« no previous file with comments | « third_party/WebKit/Source/core/events/GenericEventQueue.cpp ('k') | third_party/WebKit/Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698