2
0
Эх сурвалжийг харах

Fixed reference when iterating on prefixes array

Paul-Louis Ageneau 4 жил өмнө
parent
commit
6a4a22a87c
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      src/candidate.cpp

+ 1 - 1
src/candidate.cpp

@@ -93,7 +93,7 @@ void Candidate::parse(string candidate) {
 	                                        {"so", TransportType::TcpSo}};
 
 	const std::array prefixes{"a=", "candidate:"};
-	for (const string &prefix : prefixes)
+	for (string prefix : prefixes)
 		if (match_prefix(candidate, prefix))
 			candidate.erase(0, prefix.size());