Index: test/BaseJsTest.h |
=================================================================== |
--- a/test/BaseJsTest.h |
+++ b/test/BaseJsTest.h |
@@ -89,7 +89,7 @@ |
dummyData = "# Adblock Plus preferences\n[Subscription]\nurl=~fl~"; |
else if (path == "prefs.json") |
dummyData = "{}"; |
- return std::shared_ptr<std::istream>(new std::istringstream(dummyData)); |
+ return std::make_shared<std::istringstream>(dummyData); |
} |
void Write(const std::string& path, std::shared_ptr<std::istream> content) |