To grow std::string by a char, use push_back() instead of append().
parent
6fddfab6dd
commit
083a9e0927
|
|
@ -92,7 +92,7 @@ static std::string quote(const std::string& str)
|
|||
{
|
||||
result.append("\\");
|
||||
}
|
||||
result.append(*ci);
|
||||
result.push_back(*ci);
|
||||
}
|
||||
return result + "\"";
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue