Removing MediaStreamTrackVector and MediaStreamSourceVector typedefs
[WebKit-https.git] / Source / WebCore / Modules / mediastream / UserMediaRequest.cpp
index fe3469b..f59866c 100644 (file)
@@ -165,12 +165,12 @@ void UserMediaRequest::callSuccessHandler(PassRefPtr<MediaStreamDescriptor> stre
 
     RefPtr<MediaStream> stream = MediaStream::create(*m_scriptExecutionContext, streamDescriptor);
 
-    MediaStreamTrackVector tracks = stream->getAudioTracks();
-    for (MediaStreamTrackVector::iterator iter = tracks.begin(); iter != tracks.end(); ++iter)
+    Vector<RefPtr<MediaStreamTrack>> tracks = stream->getAudioTracks();
+    for (auto iter = tracks.begin(); iter != tracks.end(); ++iter)
         (*iter)->applyConstraints(m_audioConstraints);
 
     tracks = stream->getVideoTracks();
-    for (MediaStreamTrackVector::iterator iter = tracks.begin(); iter != tracks.end(); ++iter)
+    for (auto iter = tracks.begin(); iter != tracks.end(); ++iter)
         (*iter)->applyConstraints(m_videoConstraints);
 
     m_successCallback->handleEvent(stream.get());