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:
parent
e4addcd84b
commit
32b8a8b169
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue