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

Unified Diff: third_party/WebKit/Source/core/testing/Internals.cpp

Issue 2617783002: Migrate WTF::Vector::append() to ::push_back() [part 12 of N] (Closed)
Patch Set: rebase 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/core/testing/Internals.cpp
diff --git a/third_party/WebKit/Source/core/testing/Internals.cpp b/third_party/WebKit/Source/core/testing/Internals.cpp
index fb62a439510c0dbff6156b77bc8085a27c0e7537..faf7bfe8523ea355cc4011d27b98600095f5f033 100644
--- a/third_party/WebKit/Source/core/testing/Internals.cpp
+++ b/third_party/WebKit/Source/core/testing/Internals.cpp
@@ -1477,7 +1477,7 @@ Vector<AtomicString> Internals::userPreferredLanguages() const {
void Internals::setUserPreferredLanguages(const Vector<String>& languages) {
Vector<AtomicString> atomicLanguages;
for (size_t i = 0; i < languages.size(); ++i)
- atomicLanguages.append(AtomicString(languages[i]));
+ atomicLanguages.push_back(AtomicString(languages[i]));
overrideUserPreferredLanguages(atomicLanguages);
}
@@ -2127,7 +2127,7 @@ Vector<String> Internals::iconURLs(Document* document,
Vector<String> array;
for (auto& iconURL : iconURLs)
- array.append(iconURL.m_iconURL.getString());
+ array.push_back(iconURL.m_iconURL.getString());
return array;
}
@@ -2440,7 +2440,7 @@ ClientRectList* Internals::annotatedRegions(Document* document,
Vector<FloatQuad> quads;
for (size_t i = 0; i < regions.size(); ++i) {
if (regions[i].draggable == draggable)
- quads.append(FloatQuad(FloatRect(regions[i].bounds)));
+ quads.push_back(FloatQuad(FloatRect(regions[i].bounds)));
}
return ClientRectList::create(quads);
}

Powered by Google App Engine
This is Rietveld 408576698