From 6e47e797909564460fbf30372000c8a879e0f891 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 30 Jan 2013 22:25:17 +0100 Subject: ConfigData: move functions into the class --- test/DumpDatabase.cxx | 3 +-- test/run_encoder.cxx | 2 +- test/test_vorbis_encoder.cxx | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/DumpDatabase.cxx b/test/DumpDatabase.cxx index 172d00491..ba0e74e43 100644 --- a/test/DumpDatabase.cxx +++ b/test/DumpDatabase.cxx @@ -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(¶m, "path", path->value, - path->line); + param.AddBlockParam("path", path->value, path->line); Database *db = plugin->create(¶m, &error); diff --git a/test/run_encoder.cxx b/test/run_encoder.cxx index e2ecab583..9039f2db5 100644 --- a/test/run_encoder.cxx +++ b/test/run_encoder.cxx @@ -74,7 +74,7 @@ int main(int argc, char **argv) } config_param param; - config_add_block_param(¶m, "quality", "5.0", -1); + param.AddBlockParam("quality", "5.0", -1); encoder = encoder_init(plugin, ¶m, &error); if (encoder == NULL) { diff --git a/test/test_vorbis_encoder.cxx b/test/test_vorbis_encoder.cxx index aad48acde..0e502b154 100644 --- a/test/test_vorbis_encoder.cxx +++ b/test/test_vorbis_encoder.cxx @@ -54,7 +54,7 @@ main(G_GNUC_UNUSED int argc, G_GNUC_UNUSED char **argv) assert(plugin != NULL); config_param param; - config_add_block_param(¶m, "quality", "5.0", -1); + param.AddBlockParam("quality", "5.0", -1); struct encoder *encoder = encoder_init(plugin, ¶m, NULL); assert(encoder != NULL); -- cgit v1.2.3