mirror of
https://github.com/mii443/libdatachannel.git
synced 2025-08-22 23:25:33 +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}};
|
{"so", TransportType::TcpSo}};
|
||||||
|
|
||||||
const std::array prefixes{"a=", "candidate:"};
|
const std::array prefixes{"a=", "candidate:"};
|
||||||
for (const string &prefix : prefixes)
|
for (string prefix : prefixes)
|
||||||
if (match_prefix(candidate, prefix))
|
if (match_prefix(candidate, prefix))
|
||||||
candidate.erase(0, prefix.size());
|
candidate.erase(0, prefix.size());
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user