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

@@ -436,7 +436,7 @@ SimpleDatabase::Mount(const char *local_uri, const char *storage_uri)
std::string name(storage_uri);
std::replace_if(name.begin(), name.end(), IsUnsafeChar, '_');
const auto name_fs = AllocatedPath::FromUTF8Throw(name.c_str());
const auto name_fs = AllocatedPath::FromUTF8Throw(name);
#ifndef ENABLE_ZLIB
constexpr bool compress = false;