Compatibility with GCC 7.
continuous-integration/drone/push Build is failing Details

This commit is contained in:
tastytea 2020-11-21 22:54:29 +01:00
parent cdb525205b
commit 212b0a18f3
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 3 additions and 3 deletions

View File

@ -104,7 +104,7 @@ Config::Config(string profile_name)
const fs::path filename = get_filename();
BOOST_LOG_TRIVIAL(debug) << "Config filename is: " << filename;
ifstream file{filename.c_str()};
ifstream file(filename.c_str());
if (file.good())
{
stringstream rawjson;
@ -285,7 +285,7 @@ void Config::write()
}
_json[profile]["add_hashtags"] = profiledata.add_hashtags;
ofstream file{get_filename().c_str()};
ofstream file(get_filename().c_str());
if (file.good())
{
file << _json.toStyledString();

View File

@ -290,7 +290,7 @@ void Document::parse_watchwords()
{
Json::Value json;
const auto filepath = _cfg.get_config_dir() /= "watchwords.json";
ifstream file{filepath};
ifstream file(filepath);
if (file.good())
{
stringstream rawjson;