Convert paths to C strings in fstream initializers.
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
tastytea 2019-12-26 03:56:46 +01:00
parent 47c5bb82b5
commit 66292f7b15
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07

View File

@ -81,7 +81,7 @@ Config::Config(string profile)
const fs::path filename = get_filename();
BOOST_LOG_TRIVIAL(debug) << "Config filename is: " << filename;
ifstream file{filename};
ifstream file{filename.c_str()};
if (file.good())
{
stringstream rawjson;
@ -267,7 +267,7 @@ void Config::write()
_json[_profile]["titles_as_cw"] = data.titles_as_cw;
_json[_profile]["titles_as_cw"] = data.titles_only;
ofstream file{get_filename()};
ofstream file{get_filename().c_str()};
if (file.good())
{
file << _json.toStyledString();