Initialize profile in Config correctly.
This commit is contained in:
parent
2b0a091e87
commit
4d2353e3d5
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user