From a3908b6e6c73bf543e6351a8ec75645c4fe090e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Sverre=20Lien=20Sell=C3=A6g?= Date: Wed, 16 Sep 2020 00:33:40 +0200 Subject: [PATCH] make string const --- src/config.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.cpp b/src/config.cpp index 1040515..fd40590 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -34,7 +34,7 @@ void Config::load() { if(boost::filesystem::is_empty(old_config_directory_path)) { boost::filesystem::remove_all(old_config_directory_path); } - std::string command("mv " + old_config_directory_path.parent_path().string() + " " + juci_config_file.parent_path().string()); + const std::string command("mv " + old_config_directory_path.parent_path().string() + " " + juci_config_file.parent_path().string()); if(TinyProcessLib::Process(command).get_exit_status() == 0) { boost::filesystem::remove_all(old_config_directory_path); }