Browse Source

make string const

xdg
Jørgen Lien Sellæg 5 years ago
parent
commit
a3908b6e6c
  1. 2
      src/config.cpp

2
src/config.cpp

@ -34,7 +34,7 @@ void Config::load() {
if(boost::filesystem::is_empty(old_config_directory_path)) { if(boost::filesystem::is_empty(old_config_directory_path)) {
boost::filesystem::remove_all(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) { if(TinyProcessLib::Process(command).get_exit_status() == 0) {
boost::filesystem::remove_all(old_config_directory_path); boost::filesystem::remove_all(old_config_directory_path);
} }

Loading…
Cancel
Save