diff options
author | 2020-08-03 16:10:32 +0200 | |
---|---|---|
committer | 2020-08-04 10:18:38 +0200 | |
commit | fde721b7c79833f453f978c937ae276f88a8ab80 (patch) | |
tree | bd1df0d7a358fbdcc58cb5de1984c4519ed39a2e /src/controller.cpp | |
parent | 259afa5353de2d799829ff85dde7194a6e119ddc (diff) | |
download | newsboat-fde721b7c79833f453f978c937ae276f88a8ab80.tar.gz newsboat-fde721b7c79833f453f978c937ae276f88a8ab80.tar.zst newsboat-fde721b7c79833f453f978c937ae276f88a8ab80.zip |
Rename ConfigParser::parse() -> parse_file()
Diffstat (limited to 'src/controller.cpp')
-rw-r--r-- | src/controller.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/controller.cpp b/src/controller.cpp index e30894aa..59078ed9 100644 --- a/src/controller.cpp +++ b/src/controller.cpp @@ -186,8 +186,8 @@ int Controller::run(const CliArgsParser& args) cfgparser.register_handler("highlight-article", rxman); try { - cfgparser.parse("/etc/" PROGRAM_NAME "/config"); - cfgparser.parse(configpaths.config_file()); + cfgparser.parse_file("/etc/" PROGRAM_NAME "/config"); + cfgparser.parse_file(configpaths.config_file()); } catch (const ConfigException& ex) { LOG(Level::ERROR, "an exception occurred while parsing the configuration " @@ -874,7 +874,7 @@ void Controller::update_config() void Controller::load_configfile(const std::string& filename) { - if (cfgparser.parse(filename)) { + if (cfgparser.parse_file(filename)) { update_config(); } else { v->show_error(strprintf::fmt( |