storage/Plugin: return std::unique_ptr<Storage>

This commit is contained in:
Max Kellermann
2018-01-02 16:11:17 +01:00
parent 3f4f7b0a53
commit 3c5e4e2788
15 changed files with 46 additions and 32 deletions

View File

@@ -179,10 +179,10 @@ LocalDirectoryReader::GetInfo(bool follow)
return Stat(AllocatedPath::Build(base_fs, reader.GetEntry()), follow);
}
Storage *
std::unique_ptr<Storage>
CreateLocalStorage(Path base_fs)
{
return new LocalStorage(base_fs);
return std::make_unique<LocalStorage>(base_fs);
}
const StoragePlugin local_storage_plugin = {