summaryrefslogtreecommitdiff
path: root/src/archive
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-06-15 14:06:50 +0200
committerMax Kellermann <max@musicpd.org>2019-06-15 14:06:50 +0200
commitfcf641596322d6d51176593fe3df8d16b8f29934 (patch)
treee3806fd93b5559fa0a019028ed10e1603dc91cd6 /src/archive
parentbe79b44dc873f7bff3bcdbb0353bb4036e140794 (diff)
archive/Lookup: pass class Path
Diffstat (limited to 'src/archive')
-rw-r--r--src/archive/ArchiveLookup.cxx6
-rw-r--r--src/archive/ArchiveLookup.hxx2
2 files changed, 3 insertions, 5 deletions
diff --git a/src/archive/ArchiveLookup.cxx b/src/archive/ArchiveLookup.cxx
index 5ec0abcd2..e9227c913 100644
--- a/src/archive/ArchiveLookup.cxx
+++ b/src/archive/ArchiveLookup.cxx
@@ -21,8 +21,6 @@
#include "fs/FileInfo.hxx"
#include "system/Error.hxx"
-#include <string.h>
-
gcc_pure
static PathTraitsFS::pointer_type
FindSlash(PathTraitsFS::pointer_type p, size_t i) noexcept
@@ -35,9 +33,9 @@ FindSlash(PathTraitsFS::pointer_type p, size_t i) noexcept
}
ArchiveLookupResult
-archive_lookup(PathTraitsFS::const_pointer_type pathname)
+archive_lookup(Path pathname)
{
- PathTraitsFS::string buffer(pathname);
+ PathTraitsFS::string buffer(pathname.c_str());
size_t idx = buffer.size();
PathTraitsFS::pointer_type slash = nullptr;
diff --git a/src/archive/ArchiveLookup.hxx b/src/archive/ArchiveLookup.hxx
index 567ca1bb4..6166dd3ca 100644
--- a/src/archive/ArchiveLookup.hxx
+++ b/src/archive/ArchiveLookup.hxx
@@ -50,7 +50,7 @@ struct ArchiveLookupResult {
* Throws on error.
*/
ArchiveLookupResult
-archive_lookup(PathTraitsFS::const_pointer_type pathname);
+archive_lookup(Path pathname);
#endif