Common: update stdstr::Replace with the version of replace being used
This commit is contained in:
parent
db7aab466c
commit
0e5b6cd0e8
|
@ -106,7 +106,7 @@ void stdstr::Replace(const char search, const char replace)
|
||||||
std::string::size_type pos = str.find(search);
|
std::string::size_type pos = str.find(search);
|
||||||
while (pos != std::string::npos)
|
while (pos != std::string::npos)
|
||||||
{
|
{
|
||||||
str.replace(pos, 1, &replace);
|
str.replace(pos, 1, &replace, 1);
|
||||||
pos = str.find(search, pos + 1);
|
pos = str.find(search, pos + 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue