diff options
author | Max Kellermann <max@musicpd.org> | 2018-07-17 23:41:37 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-07-17 23:41:37 +0200 |
commit | 1b4181d98367f7d6067441fe97879358a06b599a (patch) | |
tree | ce0b7204960ef50d9c62beb9c899afb003950edc /test | |
parent | 113141bf2a6b7a444477e140854ec58fc3fe4fb9 (diff) |
test/DumpDatabase: use struct ConfigData
Diffstat (limited to 'test')
-rw-r--r-- | test/DumpDatabase.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/DumpDatabase.cxx b/test/DumpDatabase.cxx index 9ecfa690c..bd51870f1 100644 --- a/test/DumpDatabase.cxx +++ b/test/DumpDatabase.cxx @@ -27,6 +27,7 @@ #include "db/LightSong.hxx" #include "db/PlaylistVector.hxx" #include "config/Global.hxx" +#include "config/Data.hxx" #include "config/Param.hxx" #include "config/Block.hxx" #include "tag/Config.hxx" @@ -126,13 +127,15 @@ try { ReadConfigFile(config_path); - TagLoadConfig(GetGlobalConfig()); + const auto &config = GetGlobalConfig(); + + TagLoadConfig(config); MyDatabaseListener database_listener; /* do it */ - const auto *path = config_get_param(ConfigOption::DB_FILE); + const auto *path = config.GetParam(ConfigOption::DB_FILE); ConfigBlock block(path != nullptr ? path->line : -1); if (path != nullptr) block.AddBlockParam("path", path->value, path->line); |