fs/AllocatedPath: pass std::string_view to FromUTF8()

This commit is contained in:
Max Kellermann
2020-04-03 15:55:19 +02:00
parent 56b4b010d6
commit 7a58b8c3e8
8 changed files with 16 additions and 19 deletions

View File

@@ -228,7 +228,7 @@ UriToNfsPath(const char *_uri_utf8)
/* assume UTF-8 when accessing NFS from Windows */
return uri_utf8;
#else
return AllocatedPath::FromUTF8Throw(uri_utf8.c_str()).Steal();
return AllocatedPath::FromUTF8Throw(uri_utf8).Steal();
#endif
}