storage/Interface: wrap StorageDirectoryReader in std::unique_ptr

This commit is contained in:
Max Kellermann
2018-01-21 11:04:30 +01:00
parent a9847ebf54
commit 61eb2aa328
9 changed files with 29 additions and 33 deletions

View File

@@ -23,6 +23,7 @@
#include "check.h"
#include "Compiler.h"
#include <memory>
#include <string>
struct StorageFileInfo;
@@ -56,7 +57,7 @@ public:
/**
* Throws #std::runtime_error on error.
*/
virtual StorageDirectoryReader *OpenDirectory(const char *uri_utf8) = 0;
virtual std::unique_ptr<StorageDirectoryReader> OpenDirectory(const char *uri_utf8) = 0;
/**
* Map the given relative URI to an absolute URI.