Browse Source

Fixed reference when iterating on prefixes array

Paul-Louis Ageneau 4 years ago
parent
commit
6a4a22a87c
1 changed files with 1 additions and 1 deletions
  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());