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

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

Issue 2502413004: WTF/std normalization: replace WTF::Vector::last with ::back (Closed)
Patch Set: rebase Created 4 years, 1 month 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/events/EventListenerMap.cpp
diff --git a/third_party/WebKit/Source/core/events/EventListenerMap.cpp b/third_party/WebKit/Source/core/events/EventListenerMap.cpp
index ac78184c0b0566f6a457be90e3f70e4629b494fd..18b9b3e3d3f189c986c15ed3264fe8430f351ddc 100644
--- a/third_party/WebKit/Source/core/events/EventListenerMap.cpp
+++ b/third_party/WebKit/Source/core/events/EventListenerMap.cpp
@@ -121,7 +121,7 @@ bool EventListenerMap::add(const AtomicString& eventType,
}
m_entries.append(std::make_pair(eventType, new EventListenerVector));
- return addListenerToVector(m_entries.last().second.get(), listener, options,
+ return addListenerToVector(m_entries.back().second.get(), listener, options,
registeredListener);
}

Powered by Google App Engine
This is Rietveld 408576698