From c962a6be76edae13d6974ad17ea720aa6846681e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 5 Mar 2021 13:24:23 +0100 Subject: [PATCH] test/run_convert: fix Windows compiler errors --- test/run_convert.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/run_convert.cxx b/test/run_convert.cxx index d4323fcbb..3cba693fd 100644 --- a/test/run_convert.cxx +++ b/test/run_convert.cxx @@ -28,6 +28,7 @@ #include "pcm/AudioFormat.hxx" #include "pcm/Convert.hxx" #include "fs/Path.hxx" +#include "fs/NarrowPath.hxx" #include "util/ConstBuffer.hxx" #include "util/StaticFifoBuffer.hxx" #include "util/OptionDef.hxx" @@ -47,7 +48,7 @@ struct CommandLine { AudioFormat in_audio_format, out_audio_format; - Path config_path = nullptr; + FromNarrowPath config_path; bool verbose = false; }; @@ -71,7 +72,7 @@ ParseCommandLine(int argc, char **argv) while (auto o = option_parser.Next()) { switch (Option(o.index)) { case OPTION_CONFIG: - c.config_path = Path::FromFS(o.value); + c.config_path = o.value; break; case OPTION_VERBOSE: