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}
diff --git a/pc/channel_unittest.cc b/pc/channel_unittest.cc
index 8ce3729..d5c51ec 100644
--- a/pc/channel_unittest.cc
+++ b/pc/channel_unittest.cc
@@ -1312,7 +1312,7 @@
   void CreateSimulcastContent(const std::vector<std::string>& rids,
                               typename T::Content* content) {
     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));
     }