Browse Source

Changed to const ref

Paul-Louis Ageneau 4 years ago
parent
commit
8cab2b9d87
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/candidate.cpp

+ 1 - 1
src/candidate.cpp

@@ -49,7 +49,7 @@ namespace rtc {
 
 Candidate::Candidate(string candidate, string mid) : mIsResolved(false) {
 	const std::array prefixes{"a=", "candidate:"};
-	for (string prefix : prefixes)
+	for (const string &prefix : prefixes)
 		if (hasprefix(candidate, prefix))
 			candidate.erase(0, prefix.size());