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

Unified Diff: Source/core/events/DOMWindowEventQueue.cpp

Issue 637223008: Use C++11 range-based loop in core/events (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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 | « Source/core/events/CompositionEvent.cpp ('k') | Source/core/events/EventDispatcher.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/DOMWindowEventQueue.cpp
diff --git a/Source/core/events/DOMWindowEventQueue.cpp b/Source/core/events/DOMWindowEventQueue.cpp
index b4705379ac5fbe5fe410add3f0ef89cb9d80bc50..5ecb46590e8c95f3f63b608a71b212d9173d903c 100644
--- a/Source/core/events/DOMWindowEventQueue.cpp
+++ b/Source/core/events/DOMWindowEventQueue.cpp
@@ -108,9 +108,8 @@ void DOMWindowEventQueue::close()
m_isClosed = true;
m_pendingEventTimer->stop();
if (InspectorInstrumentation::hasFrontends()) {
- WillBeHeapListHashSet<RefPtrWillBeMember<Event>, 16>::iterator it = m_queuedEvents.begin();
- for (; it != m_queuedEvents.end(); ++it) {
- RefPtrWillBeRawPtr<Event> event = *it;
+ for (const auto& queuedEvent : m_queuedEvents) {
+ RefPtrWillBeRawPtr<Event> event = queuedEvent;
if (event)
InspectorInstrumentation::didRemoveEvent(event->target(), event.get());
}
« no previous file with comments | « Source/core/events/CompositionEvent.cpp ('k') | Source/core/events/EventDispatcher.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698