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

@@ -34,7 +34,7 @@ OpenArchiveInputStream(Path path, Mutex &mutex)
// archive_lookup will modify pname when true is returned
ArchiveLookupResult l;
try {
l = archive_lookup(path.c_str());
l = archive_lookup(path);
if (l.archive.IsNull()) {
return nullptr;
}