diff options
author | Max Kellermann <max@duempel.org> | 2014-02-08 13:21:50 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-02-08 13:25:44 +0100 |
commit | fe7c6fee348a3263ce0c97a83547749725f681cb (patch) | |
tree | 9773e269458ed7847fa9d566a20dfdd6db89b59a /src/archive/plugins/ZzipArchivePlugin.cxx | |
parent | 9906daeca71b7e552721f85f3696d9e6a20f7a5b (diff) | |
download | mpd-fe7c6fee348a3263ce0c97a83547749725f681cb.tar.gz mpd-fe7c6fee348a3263ce0c97a83547749725f681cb.tar.xz mpd-fe7c6fee348a3263ce0c97a83547749725f681cb.zip |
ArchivePlugin: pass Path to open()
Diffstat (limited to '')
-rw-r--r-- | src/archive/plugins/ZzipArchivePlugin.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/archive/plugins/ZzipArchivePlugin.cxx b/src/archive/plugins/ZzipArchivePlugin.cxx index 5ae3ace8d..716b56160 100644 --- a/src/archive/plugins/ZzipArchivePlugin.cxx +++ b/src/archive/plugins/ZzipArchivePlugin.cxx @@ -28,6 +28,7 @@ #include "../ArchiveVisitor.hxx" #include "input/InputStream.hxx" #include "input/InputPlugin.hxx" +#include "fs/Path.hxx" #include "util/RefCount.hxx" #include "util/Error.hxx" #include "util/Domain.hxx" @@ -70,12 +71,12 @@ static constexpr Domain zzip_domain("zzip"); /* archive open && listing routine */ static ArchiveFile * -zzip_archive_open(const char *pathname, Error &error) +zzip_archive_open(Path pathname, Error &error) { - ZZIP_DIR *dir = zzip_dir_open(pathname, nullptr); + ZZIP_DIR *dir = zzip_dir_open(pathname.c_str(), nullptr); if (dir == nullptr) { error.Format(zzip_domain, "Failed to open ZIP file %s", - pathname); + pathname.c_str()); return nullptr; } |