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

Unified Diff: third_party/WebKit/Source/core/events/EventListenerMap.cpp

Issue 2585283002: Migrate WTF::Vector::append() to ::push_back() [part 6 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 | « no previous file | third_party/WebKit/Source/core/events/EventPath.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/events/EventListenerMap.cpp
diff --git a/third_party/WebKit/Source/core/events/EventListenerMap.cpp b/third_party/WebKit/Source/core/events/EventListenerMap.cpp
index 18b9b3e3d3f189c986c15ed3264fe8430f351ddc..cd0c46291a0292c3aac10e0b1948f4e3460907da 100644
--- a/third_party/WebKit/Source/core/events/EventListenerMap.cpp
+++ b/third_party/WebKit/Source/core/events/EventListenerMap.cpp
@@ -104,7 +104,7 @@ static bool addListenerToVector(EventListenerVector* vector,
if (vector->find(*registeredListener) != kNotFound)
return false; // Duplicate listener.
- vector->append(*registeredListener);
+ vector->push_back(*registeredListener);
return true;
}
@@ -120,7 +120,7 @@ bool EventListenerMap::add(const AtomicString& eventType,
registeredListener);
}
- m_entries.append(std::make_pair(eventType, new EventListenerVector));
+ m_entries.push_back(std::make_pair(eventType, new EventListenerVector));
return addListenerToVector(m_entries.back().second.get(), listener, options,
registeredListener);
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/events/EventPath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698