aboutsummaryrefslogtreecommitdiffstats
path: root/test/DumpDatabase.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-30 22:00:32 +0100
committerMax Kellermann <max@duempel.org>2013-01-30 22:20:14 +0100
commitd9ea3082fb608935c72620e272f4b3e74b2c3a44 (patch)
tree5353513725721f49c0296520b0f55f760dacf8a5 /test/DumpDatabase.cxx
parent2d63c26936b2b9acfb8f2f81a109e4aff0b26fe7 (diff)
downloadmpd-d9ea3082fb608935c72620e272f4b3e74b2c3a44.tar.gz
mpd-d9ea3082fb608935c72620e272f4b3e74b2c3a44.tar.xz
mpd-d9ea3082fb608935c72620e272f4b3e74b2c3a44.zip
ConfigData: add constructors/destructors
Diffstat (limited to '')
-rw-r--r--test/DumpDatabase.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/test/DumpDatabase.cxx b/test/DumpDatabase.cxx
index 501c80206..172d00491 100644
--- a/test/DumpDatabase.cxx
+++ b/test/DumpDatabase.cxx
@@ -106,13 +106,12 @@ main(int argc, char **argv)
/* do it */
const struct config_param *path = config_get_param(CONF_DB_FILE);
- struct config_param *param = config_new_param("database", path->line);
+ config_param param("database", path->line);
if (path != nullptr)
- config_add_block_param(param, "path", path->value, path->line);
+ config_add_block_param(&param, "path", path->value,
+ path->line);
- Database *db = plugin->create(param, &error);
-
- config_param_free(param);
+ Database *db = plugin->create(&param, &error);
if (db == nullptr) {
cerr << error->message << endl;