aboutsummaryrefslogtreecommitdiff
path: root/src/controller.cpp
diff options
context:
space:
mode:
authorGravatar Dennis van der Schagt <dennisschagt@gmail.com> 2020-08-03 16:10:32 +0200
committerGravatar Dennis van der Schagt <dennisschagt@gmail.com> 2020-08-04 10:18:38 +0200
commitfde721b7c79833f453f978c937ae276f88a8ab80 (patch)
treebd1df0d7a358fbdcc58cb5de1984c4519ed39a2e /src/controller.cpp
parent259afa5353de2d799829ff85dde7194a6e119ddc (diff)
downloadnewsboat-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.cpp6
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(