storage/Interface: convert URI parameters to std::string_view

This commit is contained in:
Max Kellermann
2020-04-03 16:22:39 +02:00
parent 0080eee857
commit a98d627c0b
12 changed files with 115 additions and 128 deletions

View File

@@ -260,9 +260,9 @@ UpdateWalk::SkipSymlink(const Directory *directory,
if (target_utf8.empty())
return true;
const char *relative =
auto relative =
storage.MapToRelativeUTF8(target_utf8.c_str());
return relative != nullptr
return relative.data() != nullptr
? !config.follow_inside_symlinks
: !config.follow_outside_symlinks;
}