fs/AllocatedPath: pass std::string_view to FromUTF8()
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user