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

Unified Diff: third_party/WebKit/Source/core/html/FormData.cpp

Issue 2583233002: Migrate WTF::Vector::append() to ::push_back() [part 7 of N] (Closed)
Patch Set: Created 4 years 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 da16236006db20564a4bb289a07d05716bdab0a6..2051fed9f932cb0ec924d448cd8e67281f88fe61 100644
--- a/third_party/WebKit/Source/core/html/FormData.cpp
+++ b/third_party/WebKit/Source/core/html/FormData.cpp
@@ -96,7 +96,7 @@ DEFINE_TRACE(FormData) {
}
void FormData::append(const String& name, const String& value) {
- m_entries.append(
+ m_entries.push_back(
new Entry(encodeAndNormalize(name), encodeAndNormalize(value)));
}
@@ -163,7 +163,7 @@ HeapVector<FormDataEntryValue> FormData::getAll(const String& name) {
DCHECK(entry->isFile());
value.setFile(entry->file());
}
- results.append(value);
+ results.push_back(value);
}
return results;
}
@@ -202,7 +202,7 @@ void FormData::setEntry(const Entry* entry) {
}
}
if (!found)
- m_entries.append(entry);
+ m_entries.push_back(entry);
}
void FormData::append(const String& name, int value) {
@@ -210,7 +210,7 @@ void FormData::append(const String& name, int value) {
}
void FormData::append(const String& name, Blob* blob, const String& filename) {
- m_entries.append(new Entry(encodeAndNormalize(name), blob, filename));
+ m_entries.push_back(new Entry(encodeAndNormalize(name), blob, filename));
}
CString FormData::encodeAndNormalize(const String& string) const {
« no previous file with comments | « third_party/WebKit/Source/core/html/CollectionItemsCache.h ('k') | third_party/WebKit/Source/core/html/HTMLCollection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698