Initialize profile in Config correctly.

This commit is contained in:
tastytea 2019-12-28 09:45:15 +01:00
parent 2b0a091e87
commit 4d2353e3d5
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ std::ostream &operator <<(std::ostream &out, const ProfileData &data)
} }
Config::Config(string profile_name) Config::Config(string profile_name)
: profile{move(profile)} : profile{move(profile_name)}
{ {
const fs::path filename = get_filename(); const fs::path filename = get_filename();
BOOST_LOG_TRIVIAL(debug) << "Config filename is: " << 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 fs::path Config::get_filename() const
{ {
return get_config_dir() /= "config-" + profile+ ".json"; return get_config_dir() /= "config-" + profile + ".json";
} }
void Config::generate() void Config::generate()