1
0
Fork 0
mirror of https://gitlab.com/Mr_Goldberg/goldberg_emulator.git synced 2024-11-14 10:50:13 +01:00

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)