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

Unified Diff: third_party/WebKit/Source/platform/Language.cpp

Issue 2615813003: Migrate WTF::Vector::append() to ::push_back() [part 14 of N] (Closed)
Patch Set: rebase, small fix in FontSettings.h 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
« no previous file with comments | « third_party/WebKit/Source/platform/FileChooser.cpp ('k') | third_party/WebKit/Source/platform/PODArena.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/Language.cpp
diff --git a/third_party/WebKit/Source/platform/Language.cpp b/third_party/WebKit/Source/platform/Language.cpp
index be684ab8c24aa9c919f391f70ffc7cab6b442e5b..eb8c7c39399f0f0ce6a64db118ce85b7e8c02e86 100644
--- a/third_party/WebKit/Source/platform/Language.cpp
+++ b/third_party/WebKit/Source/platform/Language.cpp
@@ -57,7 +57,7 @@ void overrideUserPreferredLanguages(const Vector<AtomicString>& override) {
canonicalized.resize(0);
canonicalized.reserveCapacity(override.size());
for (const auto& lang : override)
- canonicalized.append(canonicalizeLanguageIdentifier(lang));
+ canonicalized.push_back(canonicalizeLanguageIdentifier(lang));
}
AtomicString defaultLanguage() {
@@ -74,7 +74,7 @@ Vector<AtomicString> userPreferredLanguages() {
Vector<AtomicString> languages;
languages.reserveInitialCapacity(1);
- languages.append(platformLanguage());
+ languages.push_back(platformLanguage());
return languages;
}
« no previous file with comments | « third_party/WebKit/Source/platform/FileChooser.cpp ('k') | third_party/WebKit/Source/platform/PODArena.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698