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

Unified Diff: third_party/WebKit/Source/modules/eventsource/EventSourceParserTest.cpp

Issue 2614663008: Migrate WTF::Vector::append() to ::push_back() [part 13 of N] (Closed)
Patch Set: 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/modules/eventsource/EventSourceParserTest.cpp
diff --git a/third_party/WebKit/Source/modules/eventsource/EventSourceParserTest.cpp b/third_party/WebKit/Source/modules/eventsource/EventSourceParserTest.cpp
index 96d17bd96cd790b90c701458ef982fa8fc393cc0..e0fa449fd5e773d3107ce5def87bb8c751c8b843 100644
--- a/third_party/WebKit/Source/modules/eventsource/EventSourceParserTest.cpp
+++ b/third_party/WebKit/Source/modules/eventsource/EventSourceParserTest.cpp
@@ -46,10 +46,10 @@ class Client : public GarbageCollectedFinalized<Client>,
void onMessageEvent(const AtomicString& event,
const String& data,
const AtomicString& id) override {
- m_events.append(EventOrReconnectionTimeSetting(event, data, id));
+ m_events.push_back(EventOrReconnectionTimeSetting(event, data, id));
}
void onReconnectionTimeSet(unsigned long long reconnectionTime) override {
- m_events.append(EventOrReconnectionTimeSetting(reconnectionTime));
+ m_events.push_back(EventOrReconnectionTimeSetting(reconnectionTime));
}
private:
@@ -70,10 +70,10 @@ class StoppingClient : public GarbageCollectedFinalized<StoppingClient>,
const String& data,
const AtomicString& id) override {
m_parser->stop();
- m_events.append(EventOrReconnectionTimeSetting(event, data, id));
+ m_events.push_back(EventOrReconnectionTimeSetting(event, data, id));
}
void onReconnectionTimeSet(unsigned long long reconnectionTime) override {
- m_events.append(EventOrReconnectionTimeSetting(reconnectionTime));
+ m_events.push_back(EventOrReconnectionTimeSetting(reconnectionTime));
}
DEFINE_INLINE_VIRTUAL_TRACE() {

Powered by Google App Engine
This is Rietveld 408576698