From 4d2353e3d5f18cd25ccd438b191f38a1ef1fe6e8 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 28 Dec 2019 09:45:15 +0100 Subject: [PATCH] Initialize profile in Config correctly. --- src/config.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.cpp b/src/config.cpp index 19fc2c0..54bea9d 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -75,7 +75,7 @@ std::ostream &operator <<(std::ostream &out, const ProfileData &data) } Config::Config(string profile_name) - : profile{move(profile)} + : profile{move(profile_name)} { const fs::path filename = get_filename(); BOOST_LOG_TRIVIAL(debug) << "Config filename is: " << filename; @@ -127,7 +127,7 @@ fs::path Config::get_config_dir() const fs::path Config::get_filename() const { - return get_config_dir() /= "config-" + profile+ ".json"; + return get_config_dir() /= "config-" + profile + ".json"; } void Config::generate()