Convert paths to C strings in fstream initializers.
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
47c5bb82b5
commit
66292f7b15
|
@ -81,7 +81,7 @@ Config::Config(string profile)
|
||||||
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;
|
||||||
|
|
||||||
ifstream file{filename};
|
ifstream file{filename.c_str()};
|
||||||
if (file.good())
|
if (file.good())
|
||||||
{
|
{
|
||||||
stringstream rawjson;
|
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_as_cw;
|
||||||
_json[_profile]["titles_as_cw"] = data.titles_only;
|
_json[_profile]["titles_as_cw"] = data.titles_only;
|
||||||
|
|
||||||
ofstream file{get_filename()};
|
ofstream file{get_filename().c_str()};
|
||||||
if (file.good())
|
if (file.good())
|
||||||
{
|
{
|
||||||
file << _json.toStyledString();
|
file << _json.toStyledString();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user