Przeglądaj źródła

Changed to const ref

Paul-Louis Ageneau 5 lat temu
rodzic
commit
8cab2b9d87
1 zmienionych plików z 1 dodań i 1 usunięć
  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());