archive/Lookup: pass class Path

This commit is contained in:
Max Kellermann
2019-06-15 14:06:50 +02:00
parent be79b44dc8
commit fcf6415963
4 changed files with 10 additions and 12 deletions

View File

@@ -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;

View File

@@ -50,7 +50,7 @@ struct ArchiveLookupResult {
* Throws on error.
*/
ArchiveLookupResult
archive_lookup(PathTraitsFS::const_pointer_type pathname);
archive_lookup(Path pathname);
#endif