clang-tidy: Fix unnecessary copy/ref churn of for loop variables in libwebrtc
authorddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 16 Jan 2019 22:44:54 +0000 (22:44 +0000)
committerddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 16 Jan 2019 22:44:54 +0000 (22:44 +0000)
commitab03a0048b890615aa4e1e672b5d7a11bc377ef9
treeb6db3abfff2fabd893277a61fdd427d6113a4cf0
parent3bdf63466c8846032c98171611970a21bfaa485b
clang-tidy: Fix unnecessary copy/ref churn of for loop variables in libwebrtc
<https://webkit.org/b/193498>

Reviewed by Youenn Fablet.

Fix unwanted copying/ref churn of loop variables by making them
const references.

* Source/webrtc/modules/bitrate_controller/loss_based_bandwidth_estimation.cc:
* Source/webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc:
* Source/webrtc/p2p/base/mdns_message.cc:
* Source/webrtc/p2p/base/port.cc:
* Source/webrtc/p2p/base/stunrequest.cc:
* Source/webrtc/pc/jseptransportcontroller.cc:
* Source/webrtc/pc/peerconnection.cc:
* Source/webrtc/pc/rtcstatscollector.cc:
* Source/webrtc/pc/rtpreceiver.cc:
* Source/webrtc/pc/rtptransceiver.cc:
* Source/webrtc/pc/statscollector.cc:
* Source/webrtc/pc/trackmediainfomap.cc:
* Source/webrtc/rtc_base/filerotatingstream.cc:
* Source/webrtc/rtc_base/opensslsessioncache.cc:
* Source/webrtc/video/receive_statistics_proxy.cc:
* WebKit/0002-libwebrtc-fix-unnecessary-copy-of-for-loop-variables.diff: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@240053 268f45cc-cd09-0410-ab3c-d52691b4dbfc
17 files changed:
Source/ThirdParty/libwebrtc/ChangeLog
Source/ThirdParty/libwebrtc/Source/webrtc/modules/bitrate_controller/loss_based_bandwidth_estimation.cc
Source/ThirdParty/libwebrtc/Source/webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc
Source/ThirdParty/libwebrtc/Source/webrtc/p2p/base/mdns_message.cc
Source/ThirdParty/libwebrtc/Source/webrtc/p2p/base/port.cc
Source/ThirdParty/libwebrtc/Source/webrtc/p2p/base/stunrequest.cc
Source/ThirdParty/libwebrtc/Source/webrtc/pc/jseptransportcontroller.cc
Source/ThirdParty/libwebrtc/Source/webrtc/pc/peerconnection.cc
Source/ThirdParty/libwebrtc/Source/webrtc/pc/rtcstatscollector.cc
Source/ThirdParty/libwebrtc/Source/webrtc/pc/rtpreceiver.cc
Source/ThirdParty/libwebrtc/Source/webrtc/pc/rtptransceiver.cc
Source/ThirdParty/libwebrtc/Source/webrtc/pc/statscollector.cc
Source/ThirdParty/libwebrtc/Source/webrtc/pc/trackmediainfomap.cc
Source/ThirdParty/libwebrtc/Source/webrtc/rtc_base/filerotatingstream.cc
Source/ThirdParty/libwebrtc/Source/webrtc/rtc_base/opensslsessioncache.cc
Source/ThirdParty/libwebrtc/Source/webrtc/video/receive_statistics_proxy.cc
Source/ThirdParty/libwebrtc/WebKit/0002-libwebrtc-fix-unnecessary-copy-of-for-loop-variables.diff [new file with mode: 0644]