From a40246d3123d4bd0d1be638cd7f7b91274d8f23d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 26 Oct 2013 15:14:54 +0200 Subject: TagFile: use Path instead of const char * --- test/dump_rva2.cxx | 3 ++- test/read_tags.cxx | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/dump_rva2.cxx b/test/dump_rva2.cxx index 3d47431ec..e1ba5336a 100644 --- a/test/dump_rva2.cxx +++ b/test/dump_rva2.cxx @@ -23,6 +23,7 @@ #include "ReplayGainInfo.hxx" #include "ConfigGlobal.hxx" #include "util/Error.hxx" +#include "fs/Path.hxx" #include @@ -56,7 +57,7 @@ int main(int argc, char **argv) const char *path = argv[1]; Error error; - struct id3_tag *tag = tag_id3_load(path, error); + struct id3_tag *tag = tag_id3_load(Path::FromFS(path), error); if (tag == NULL) { if (error.IsDefined()) g_printerr("%s\n", error.GetMessage()); diff --git a/test/read_tags.cxx b/test/read_tags.cxx index 2d25041f5..90f1424d9 100644 --- a/test/read_tags.cxx +++ b/test/read_tags.cxx @@ -28,6 +28,7 @@ #include "tag/TagId3.hxx" #include "tag/ApeTag.hxx" #include "util/Error.hxx" +#include "fs/Path.hxx" #include "thread/Cond.hxx" #include "Log.hxx" @@ -221,9 +222,9 @@ int main(int argc, char **argv) } if (empty) { - tag_ape_scan2(path, &print_handler, NULL); + tag_ape_scan2(Path::FromFS(path), &print_handler, NULL); if (empty) - tag_id3_scan(path, &print_handler, NULL); + tag_id3_scan(Path::FromFS(path), &print_handler, NULL); } return 0; -- cgit v1.2.3