aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorMacroFake <falke.marco@gmail.com>2022-08-19 11:38:56 +0200
committerMacroFake <falke.marco@gmail.com>2022-08-20 09:32:53 +0200
commitfaad673716cfbad1e715f1bdf8ac00938a055aea (patch)
treefe1134e201b198a4ae2ee1483e0ac13b6a4ccbfa /src/util
parentc73c8d53fe27956faacb3e8ca0e94adf071de6ec (diff)
Fix issues when calling std::move(const&)
Diffstat (limited to 'src/util')
-rw-r--r--src/util/string.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/util/string.cpp b/src/util/string.cpp
index db6dbe4135..e994c85f1c 100644
--- a/src/util/string.cpp
+++ b/src/util/string.cpp
@@ -6,10 +6,9 @@
#include <regex>
#include <string>
-#include <utility>
void ReplaceAll(std::string& in_out, const std::string& search, const std::string& substitute)
{
if (search.empty()) return;
- in_out = std::regex_replace(in_out, std::regex(std::move(search)), substitute);
+ in_out = std::regex_replace(in_out, std::regex(search), substitute);
}