ConfigData: move functions into the class

This commit is contained in:
Max Kellermann
2013-01-30 22:25:17 +01:00
parent d9ea3082fb
commit 6e47e79790
7 changed files with 37 additions and 38 deletions

View File

@@ -108,8 +108,7 @@ main(int argc, char **argv)
const struct config_param *path = config_get_param(CONF_DB_FILE);
config_param param("database", path->line);
if (path != nullptr)
config_add_block_param(&param, "path", path->value,
path->line);
param.AddBlockParam("path", path->value, path->line);
Database *db = plugin->create(&param, &error);