Fix Chromium Roll failing because of -Wrange-loop-construct
Bug: webrtc:11398 Change-Id: I51f6f9968b3a94b5fec325e8b5d29fd2bb290ee1 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/169553 Commit-Queue: Courtney Edwards <courtneyfe@webrtc.org> Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Reviewed-by: Henrik Boström <hbos@webrtc.org> Reviewed-by: Sami Kalliomäki <sakal@webrtc.org> Cr-Commit-Position: refs/heads/master@{#30669}
This commit is contained in:
committed by
Commit Bot
parent
496a335a87
commit
134c6996c8
@ -1312,7 +1312,7 @@ class ChannelTest : public ::testing::Test, public sigslot::has_slots<> {
|
|||||||
void CreateSimulcastContent(const std::vector<std::string>& rids,
|
void CreateSimulcastContent(const std::vector<std::string>& rids,
|
||||||
typename T::Content* content) {
|
typename T::Content* content) {
|
||||||
std::vector<RidDescription> rid_descriptions;
|
std::vector<RidDescription> rid_descriptions;
|
||||||
for (const std::string name : rids) {
|
for (const std::string& name : rids) {
|
||||||
rid_descriptions.push_back(RidDescription(name, RidDirection::kSend));
|
rid_descriptions.push_back(RidDescription(name, RidDirection::kSend));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -174,7 +174,7 @@ std::string NetworkInformation::ToString() const {
|
|||||||
ss << "; underlying_type_for_vpn " << underlying_type_for_vpn;
|
ss << "; underlying_type_for_vpn " << underlying_type_for_vpn;
|
||||||
}
|
}
|
||||||
ss << "; address";
|
ss << "; address";
|
||||||
for (const rtc::IPAddress address : ip_addresses) {
|
for (const rtc::IPAddress& address : ip_addresses) {
|
||||||
ss << " " << address.ToString();
|
ss << " " << address.ToString();
|
||||||
}
|
}
|
||||||
ss << "]";
|
ss << "]";
|
||||||
|
|||||||
Reference in New Issue
Block a user