Mapper: use class Path

This commit is contained in:
Max Kellermann
2015-02-28 22:07:01 +01:00
parent 7a8f96b1dd
commit 44b9197354
3 changed files with 10 additions and 5 deletions

View File

@@ -86,8 +86,10 @@ map_uri_fs(const char *uri)
}
std::string
map_fs_to_utf8(const char *path_fs)
map_fs_to_utf8(Path _path_fs)
{
auto path_fs = _path_fs.c_str();
if (PathTraitsFS::IsSeparator(path_fs[0])) {
if (instance->storage == nullptr)
return std::string();