Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/DefaultFileSystem.cpp

Issue 5163715573841920: Issue 768 - Switch from TR1 to C++11 (Closed)
Patch Set: address comments Created Aug. 6, 2015, 7:34 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « libadblockplus.gyp ('k') | src/FileSystemJsObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/DefaultFileSystem.cpp
diff --git a/src/DefaultFileSystem.cpp b/src/DefaultFileSystem.cpp
index e2210d92497197d89805a174eb88fcc896c5acc0..1e0a5e7b764a0e36107c224727a0837435b9d4ec 100644
--- a/src/DefaultFileSystem.cpp
+++ b/src/DefaultFileSystem.cpp
@@ -66,17 +66,17 @@ namespace
#endif
}
-std::tr1::shared_ptr<std::istream>
+std::shared_ptr<std::istream>
DefaultFileSystem::Read(const std::string& path) const
{
- std::tr1::shared_ptr<std::istream> result(new std::ifstream(NormalizePath(path).c_str()));
+ 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::tr1::shared_ptr<std::istream> data)
+ 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);
« no previous file with comments | « libadblockplus.gyp ('k') | src/FileSystemJsObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld