| Index: include/AdblockPlus/DefaultFileSystem.h |
| =================================================================== |
| --- a/include/AdblockPlus/DefaultFileSystem.h |
| +++ b/include/AdblockPlus/DefaultFileSystem.h |
| @@ -33,17 +33,17 @@ |
| * system's file system. |
| * All paths are considered relative to the base path, or to the current |
| * working directory if no base path is set (see `SetBasePath()`). |
| */ |
| class DefaultFileSystem : public FileSystem |
| { |
| public: |
| std::shared_ptr<std::istream> Read(const std::string& path) const; |
|
hub
2017/04/12 14:42:26
Also I have another patch that use unique_ptr<> he
|
| - void Write(const std::string& path, std::shared_ptr<std::istream> data); |
| + void Write(const std::string& path, const std::istream& data); |
|
sergei
2017/04/12 13:34:31
I'm not sure that it should be const because std::
hub
2017/04/12 13:51:35
Current implementation calls std::basic_ios::rdbuf
sergei
2017/04/12 13:57:24
That's the issue, the method is const but it retur
|
| void Move(const std::string& fromPath, const std::string& toPath); |
| void Remove(const std::string& path); |
| StatResult Stat(const std::string& path) const; |
| std::string Resolve(const std::string& path) const; |
| /** |
| * Sets the base path, all paths are considered relative to it. |
| * @param path Base path. |