mirror of
https://github.com/mii443/libdatachannel.git
synced 2025-08-22 15:15:28 +00:00
Fixed reference when iterating on prefixes array
This commit is contained in:
@ -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());
|
||||
|
||||
|
Reference in New Issue
Block a user