Index: test/DefaultFileSystem.cpp |
=================================================================== |
--- a/test/DefaultFileSystem.cpp |
+++ b/test/DefaultFileSystem.cpp |
@@ -21,18 +21,18 @@ |
namespace |
{ |
const std::string testPath = "libadblockplus-t\xc3\xa4st-file"; |
void WriteString(AdblockPlus::FileSystem& fileSystem, |
const std::string& content) |
{ |
- std::shared_ptr<std::stringstream> input(new std::stringstream); |
- *input << content; |
+ std::stringstream input; |
+ input << content; |
fileSystem.Write(testPath, input); |
} |
} |
TEST(DefaultFileSystemTest, WriteReadRemove) |
{ |
AdblockPlus::DefaultFileSystem fileSystem; |
WriteString(fileSystem, "foo"); |