<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - WebRTC: Update RTCPeerConnection.addTrack() to create (or reuse) an RTCRtpTransceiver"
   href="https://bugs.webkit.org/show_bug.cgi?id=158191#c8">Comment # 8</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - WebRTC: Update RTCPeerConnection.addTrack() to create (or reuse) an RTCRtpTransceiver"
   href="https://bugs.webkit.org/show_bug.cgi?id=158191">bug 158191</a>
              from <span class="vcard"><a class="email" href="mailto:darin&#64;apple.com" title="Darin Adler &lt;darin&#64;apple.com&gt;"> <span class="fn">Darin Adler</span></a>
</span></b>
        <pre>Comment on <span class=""><a href="attachment.cgi?id=280309&amp;action=diff" name="attach_280309" title="Updated patch">attachment 280309</a> <a href="attachment.cgi?id=280309&amp;action=edit" title="Updated patch">[details]</a></span>
Updated patch

View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=280309&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=280309&amp;action=review</a>

<span class="quote">&gt; Source/WebCore/Modules/mediastream/MediaEndpointPeerConnection.cpp:135
&gt; +    RtpSenderVector senders = RtpSenderVector(m_client-&gt;getSenders());</span >

I don’t think we need to state the class name twice. Default behavior when receiving a const&amp; is to make a copy, in fact, this should work:

    auto senders = m_client-&gt;getSenders();

But we need a comment explaining why we need a copy rather than using the reference. The copy is expensive.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>