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

merge-requests/6/head
Nemirtingas 5 years ago
parent e4addcd84b
commit 32b8a8b169

@ -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)

Loading…
Cancel
Save