aboutsummaryrefslogtreecommitdiffstats
path: root/src/archive/ArchivePlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-08 13:21:50 +0100
committerMax Kellermann <max@duempel.org>2014-02-08 13:25:44 +0100
commitfe7c6fee348a3263ce0c97a83547749725f681cb (patch)
tree9773e269458ed7847fa9d566a20dfdd6db89b59a /src/archive/ArchivePlugin.cxx
parent9906daeca71b7e552721f85f3696d9e6a20f7a5b (diff)
downloadmpd-fe7c6fee348a3263ce0c97a83547749725f681cb.tar.gz
mpd-fe7c6fee348a3263ce0c97a83547749725f681cb.tar.xz
mpd-fe7c6fee348a3263ce0c97a83547749725f681cb.zip
ArchivePlugin: pass Path to open()
Diffstat (limited to '')
-rw-r--r--src/archive/ArchivePlugin.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/archive/ArchivePlugin.cxx b/src/archive/ArchivePlugin.cxx
index 6633c1748..67f469e08 100644
--- a/src/archive/ArchivePlugin.cxx
+++ b/src/archive/ArchivePlugin.cxx
@@ -20,17 +20,18 @@
#include "config.h"
#include "ArchivePlugin.hxx"
#include "ArchiveFile.hxx"
+#include "fs/Path.hxx"
#include "util/Error.hxx"
#include <assert.h>
ArchiveFile *
-archive_file_open(const ArchivePlugin *plugin, const char *path,
+archive_file_open(const ArchivePlugin *plugin, Path path,
Error &error)
{
assert(plugin != nullptr);
assert(plugin->open != nullptr);
- assert(path != nullptr);
+ assert(!path.IsNull());
ArchiveFile *file = plugin->open(path, error);
assert((file == nullptr) == error.IsDefined());