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

Unified Diff: third_party/WebKit/Source/core/editing/state_machines/StateMachineTestUtil.cpp

Issue 2571953004: Migrate WTF::Vector::append() to ::push_back() [part 5 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
« no previous file with comments | « third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/editing/state_machines/StateMachineTestUtil.cpp
diff --git a/third_party/WebKit/Source/core/editing/state_machines/StateMachineTestUtil.cpp b/third_party/WebKit/Source/core/editing/state_machines/StateMachineTestUtil.cpp
index 3118350c50b94694cadcd3ef3e1df33d17edacdc..4ba54f20e49a7b66968ef6e0ea87be045d9143d3 100644
--- a/third_party/WebKit/Source/core/editing/state_machines/StateMachineTestUtil.cpp
+++ b/third_party/WebKit/Source/core/editing/state_machines/StateMachineTestUtil.cpp
@@ -31,10 +31,10 @@ Vector<UChar> codePointsToCodeUnits(const Vector<UChar32>& codePoints) {
Vector<UChar> out;
for (const auto& codePoint : codePoints) {
if (U16_LENGTH(codePoint) == 2) {
- out.append(U16_LEAD(codePoint));
- out.append(U16_TRAIL(codePoint));
+ out.push_back(U16_LEAD(codePoint));
+ out.push_back(U16_TRAIL(codePoint));
} else {
- out.append(static_cast<UChar>(codePoint));
+ out.push_back(static_cast<UChar>(codePoint));
}
}
return out;
« no previous file with comments | « third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698