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

Unified Diff: src/FileSystemJsObject.cpp

Issue 5163715573841920: Issue 768 - Switch from TR1 to C++11 (Closed)
Patch Set: Created July 11, 2014, 2:24 p.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
Index: src/FileSystemJsObject.cpp
===================================================================
--- a/src/FileSystemJsObject.cpp
+++ b/src/FileSystemJsObject.cpp
@@ -55,17 +55,17 @@ namespace
}
void Run()
{
std::string content;
std::string error;
try
{
- std::tr1::shared_ptr<std::istream> stream = fileSystem->Read(path);
+ std::shared_ptr<std::istream> stream = fileSystem->Read(path);
content = Utils::Slurp(*stream);
}
catch (std::exception& e)
{
error = e.what();
}
catch (...)
{
@@ -95,17 +95,17 @@ namespace
{
}
void Run()
{
std::string error;
try
{
- std::tr1::shared_ptr<std::iostream> stream(new std::stringstream);
+ std::shared_ptr<std::iostream> stream(new std::stringstream);
*stream << content;
fileSystem->Write(path, stream);
}
catch (std::exception& e)
{
error = e.what();
}
catch (...)

Powered by Google App Engine
This is Rietveld