Update local_storage.cpp, replace_with string parameters should be const. (Fix build error on VisualStudio)

This commit is contained in:
Nemirtingas 2019-06-08 08:45:09 +00:00
parent e4addcd84b
commit 32b8a8b169

View file

@ -410,7 +410,7 @@ std::string Local_Storage::get_user_appdata_path()
return user_appdata_path.append(PATH_SEPARATOR).append(PROGRAM_NAME).append(" Saves");
}
static std::string replace_with(std::string s, std::string old, char *new_str)
static std::string replace_with(std::string s, std::string const &old, const char *new_str)
{
int pos;
while ((pos = s.find(old)) != std::string::npos)