aboutsummaryrefslogtreecommitdiff
path: root/FileReader.h
diff options
context:
space:
mode:
Diffstat (limited to 'FileReader.h')
-rw-r--r--FileReader.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/FileReader.h b/FileReader.h
index 90d5e32..1cf62ba 100644
--- a/FileReader.h
+++ b/FileReader.h
@@ -2,6 +2,7 @@
#include <string>
#include <map>
+#include <memory>
#include "FileStrategy.h"
@@ -9,7 +10,7 @@ using FactoryMap = std::map<std::string, const FileStrategy *>;
class FileReader {
public:
- static FileStrategy & open(const std::string url);
+ static std::unique_ptr<FileStrategy> open(const std::string url);
private:
FileReader() = default;