fs/Traits: convert first Relative() parameter to std::string_view
This commit is contained in:
@@ -81,7 +81,7 @@ CurlStorage::MapUTF8(const char *uri_utf8) const noexcept
|
||||
const char *
|
||||
CurlStorage::MapToRelativeUTF8(const char *uri_utf8) const noexcept
|
||||
{
|
||||
return PathTraitsUTF8::Relative(base.c_str(),
|
||||
return PathTraitsUTF8::Relative(base,
|
||||
CurlUnescape(uri_utf8).c_str());
|
||||
}
|
||||
|
||||
|
@@ -129,7 +129,7 @@ LocalStorage::MapFS(const char *uri_utf8) const noexcept
|
||||
const char *
|
||||
LocalStorage::MapToRelativeUTF8(const char *uri_utf8) const noexcept
|
||||
{
|
||||
return PathTraitsUTF8::Relative(base_utf8.c_str(), uri_utf8);
|
||||
return PathTraitsUTF8::Relative(base_utf8, uri_utf8);
|
||||
}
|
||||
|
||||
StorageFileInfo
|
||||
|
@@ -246,7 +246,7 @@ NfsStorage::MapUTF8(const char *uri_utf8) const noexcept
|
||||
const char *
|
||||
NfsStorage::MapToRelativeUTF8(const char *uri_utf8) const noexcept
|
||||
{
|
||||
return PathTraitsUTF8::Relative(base.c_str(), uri_utf8);
|
||||
return PathTraitsUTF8::Relative(base, uri_utf8);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@@ -87,7 +87,7 @@ SmbclientStorage::MapUTF8(const char *uri_utf8) const noexcept
|
||||
const char *
|
||||
SmbclientStorage::MapToRelativeUTF8(const char *uri_utf8) const noexcept
|
||||
{
|
||||
return PathTraitsUTF8::Relative(base.c_str(), uri_utf8);
|
||||
return PathTraitsUTF8::Relative(base, uri_utf8);
|
||||
}
|
||||
|
||||
static StorageFileInfo
|
||||
|
@@ -347,7 +347,7 @@ UdisksStorage::MapUTF8(const char *uri_utf8) const noexcept
|
||||
const char *
|
||||
UdisksStorage::MapToRelativeUTF8(const char *uri_utf8) const noexcept
|
||||
{
|
||||
return PathTraitsUTF8::Relative(base_uri.c_str(), uri_utf8);
|
||||
return PathTraitsUTF8::Relative(base_uri, uri_utf8);
|
||||
}
|
||||
|
||||
static std::unique_ptr<Storage>
|
||||
|
Reference in New Issue
Block a user