| Index: src/DefaultFileSystem.cpp |
| =================================================================== |
| --- a/src/DefaultFileSystem.cpp |
| +++ b/src/DefaultFileSystem.cpp |
| @@ -71,17 +71,17 @@ |
| { |
| std::shared_ptr<std::istream> result(new std::ifstream(NormalizePath(path).c_str())); |
| if (result->fail()) |
| throw RuntimeErrorWithErrno("Failed to open " + path); |
| return result; |
| } |
| void DefaultFileSystem::Write(const std::string& path, |
| - std::shared_ptr<std::istream> data) |
| + const std::shared_ptr<std::istream>& data) |
| { |
| std::ofstream file(NormalizePath(path).c_str(), std::ios_base::out | std::ios_base::binary); |
| file << Utils::Slurp(*data); |
| } |
| void DefaultFileSystem::Move(const std::string& fromPath, |
| const std::string& toPath) |
| { |