A few more warnings.

This commit is contained in:
comex
2013-09-01 23:25:57 -04:00
parent 2630169229
commit 35b8dfbe0c
7 changed files with 15 additions and 8 deletions

View File

@ -270,7 +270,7 @@ std::string ReplaceAll(std::string result, const std::string& src, const std::st
while(1)
{
size_t pos = result.find(src);
if (pos == -1) break;
if (pos == std::string::npos) break;
result.replace(pos, src.size(), dest);
}
return result;