| Index: test/FileSystemJsObject.cpp |
| =================================================================== |
| --- a/test/FileSystemJsObject.cpp |
| +++ b/test/FileSystemJsObject.cpp |
| @@ -45,24 +45,24 @@ |
| { |
| if (!success) |
| throw std::runtime_error("Unable to read " + path); |
| std::stringstream* const stream = new std::stringstream; |
| *stream << contentToRead; |
| return std::shared_ptr<std::istream>(stream); |
| } |
| - void Write(const std::string& path, std::shared_ptr<std::istream> data) |
| + void Write(const std::string& path, std::istream& data) |
| { |
| if (!success) |
| throw std::runtime_error("Unable to write to " + path); |
| lastWrittenPath = path; |
| std::stringstream content; |
| - content << data->rdbuf(); |
| + content << data.rdbuf(); |
| lastWrittenContent = content.str(); |
| } |
| void Move(const std::string& fromPath, const std::string& toPath) |
| { |
| if (!success) |
| throw std::runtime_error("Unable to move " + fromPath + " to " |
| + toPath); |