From feb8d5b82f3e7c67806d5efbef1e0b86170ec6dd Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 29 Jan 2013 17:23:35 +0100 Subject: ConfigFile, CommandLine: use the Path class --- test/DumpDatabase.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test/DumpDatabase.cxx') diff --git a/test/DumpDatabase.cxx b/test/DumpDatabase.cxx index ea0ebb44c..501c80206 100644 --- a/test/DumpDatabase.cxx +++ b/test/DumpDatabase.cxx @@ -26,6 +26,7 @@ #include "PlaylistVector.hxx" #include "conf.h" #include "tag.h" +#include "fs/Path.hxx" #include using std::cout; @@ -76,7 +77,7 @@ main(int argc, char **argv) return 1; } - const char *const config_path = argv[1]; + const Path config_path = Path::FromFS(argv[1]); const char *const plugin_name = argv[2]; const DatabasePlugin *plugin = GetDatabasePluginByName(plugin_name); @@ -94,7 +95,7 @@ main(int argc, char **argv) config_global_init(); - if (!config_read_file(config_path, &error)) { + if (!ReadConfigFile(config_path, &error)) { cerr << error->message << endl; g_error_free(error); return EXIT_FAILURE; -- cgit v1.2.3