Add missing '&'s to some function parameters

Bug: webrtc:13616
Change-Id: Id4a6d82fbbedbb505585dfb8714ff62cecd74c98
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/249360
Reviewed-by: Niels Moller <nisse@webrtc.org>
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Commit-Queue: Ali Tofigh <alito@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#35826}
This commit is contained in:
Ali Tofigh 2022-01-26 14:28:42 +01:00 committed by WebRTC LUCI CQ
parent 950c8e924e
commit b8ef923ebd
4 changed files with 5 additions and 5 deletions

View File

@ -21,7 +21,7 @@ void CompareHeaderExtensions(const char* packet1,
size_t packet1_size,
const char* packet2,
size_t packet2_size,
const std::vector<int> encrypted_headers,
const std::vector<int>& encrypted_headers,
bool expect_equal) {
// Sanity check: packets must be large enough to contain the RTP header and
// extensions header.

View File

@ -295,7 +295,7 @@ void CompareHeaderExtensions(const char* packet1,
size_t packet1_size,
const char* packet2,
size_t packet2_size,
std::vector<int> encrypted_headers,
const std::vector<int>& encrypted_headers,
bool expect_equal);
#endif // MEDIA_BASE_FAKE_RTP_H_

View File

@ -638,7 +638,7 @@ std::vector<RtpSenderInfo>* RtpTransmissionManager::GetLocalSenderInfos(
const RtpSenderInfo* RtpTransmissionManager::FindSenderInfo(
const std::vector<RtpSenderInfo>& infos,
const std::string& stream_id,
const std::string sender_id) const {
const std::string& sender_id) const {
for (const RtpSenderInfo& sender_info : infos) {
if (sender_info.stream_id == stream_id &&
sender_info.sender_id == sender_id) {

View File

@ -50,7 +50,7 @@ namespace webrtc {
struct RtpSenderInfo {
RtpSenderInfo() : first_ssrc(0) {}
RtpSenderInfo(const std::string& stream_id,
const std::string sender_id,
const std::string& sender_id,
uint32_t ssrc)
: stream_id(stream_id), sender_id(sender_id), first_ssrc(ssrc) {}
bool operator==(const RtpSenderInfo& other) {
@ -184,7 +184,7 @@ class RtpTransmissionManager : public RtpSenderBase::SetStreamsObserver {
cricket::MediaType media_type);
const RtpSenderInfo* FindSenderInfo(const std::vector<RtpSenderInfo>& infos,
const std::string& stream_id,
std::string sender_id) const;
const std::string& sender_id) const;
// Return the RtpSender with the given track attached.
rtc::scoped_refptr<RtpSenderProxyWithInternal<RtpSenderInternal>>