From 32b8a8b169566ba832f2ebb0f2a9f548cde2a000 Mon Sep 17 00:00:00 2001 From: Nemirtingas Date: Sat, 8 Jun 2019 08:45:09 +0000 Subject: [PATCH] Update local_storage.cpp, replace_with string parameters should be const. (Fix build error on VisualStudio) --- dll/local_storage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dll/local_storage.cpp b/dll/local_storage.cpp index bfec5eba..80f815c5 100644 --- a/dll/local_storage.cpp +++ b/dll/local_storage.cpp @@ -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)