Use modern for-loops in WebCore/Modules - 2
[WebKit-https.git] / Source / WebCore / Modules / mediastream / RTCDTMFSender.cpp
index 3cffb86..527b5d1 100644 (file)
@@ -161,9 +161,8 @@ void RTCDTMFSender::scheduledEventTimerFired()
     Vector<RefPtr<Event>> events;
     events.swap(m_scheduledEvents);
 
-    Vector<RefPtr<Event>>::iterator it = events.begin();
-    for (; it != events.end(); ++it)
-        dispatchEvent((*it).release());
+    for (auto& event : events)
+        dispatchEvent(event.release());
 }
 
 } // namespace WebCore