Index: include/AdblockPlus/FileSystem.h |
=================================================================== |
--- a/include/AdblockPlus/FileSystem.h |
+++ b/include/AdblockPlus/FileSystem.h |
@@ -76,17 +76,17 @@ |
Read(const std::string& path) const = 0; |
/** |
* Writes to a file. |
* @param path File path. |
* @param data Input stream with the data to write. |
*/ |
virtual void Write(const std::string& path, |
- std::shared_ptr<std::istream> data) = 0; |
+ const std::shared_ptr<std::istream>& data) = 0; |
/** |
* Moves a file (i.e.\ renames it). |
* @param fromPath Current path to the file. |
* @param toPath New path to the file. |
*/ |
virtual void Move(const std::string& fromPath, |
const std::string& toPath) = 0; |