Avoid copy-prone idiom "for (auto item : collection)"
[WebKit-https.git] / Source / WebCore / platform / graphics / avfoundation / objc / SourceBufferPrivateAVFObjC.mm
index 4bf80cd..bf538b5 100644 (file)
@@ -695,7 +695,7 @@ void SourceBufferPrivateAVFObjC::seekToTime(MediaTime time)
 
 IntSize SourceBufferPrivateAVFObjC::naturalSize()
 {
-    for (auto videoTrack : m_videoTracks) {
+    for (auto& videoTrack : m_videoTracks) {
         if (videoTrack->selected())
             return videoTrack->naturalSize();
     }