Index: tools/render_pdfs_main.cpp |
diff --git a/tools/render_pdfs_main.cpp b/tools/render_pdfs_main.cpp |
index 4e13f7ebd08a58cb3e109207cec48d3c3e83a3cc..9b80ef4d500565d12bfc7d0a439c562daebb0e8f 100644 |
--- a/tools/render_pdfs_main.cpp |
+++ b/tools/render_pdfs_main.cpp |
@@ -115,7 +115,7 @@ public: |
static SkWStream* open_stream(const SkString& outputDir, |
const SkString& inputFilename) { |
if (outputDir.isEmpty()) { |
- return SkNEW(NullWStream); |
+ return new NullWStream; |
} |
SkString outputPath; |
@@ -123,8 +123,7 @@ static SkWStream* open_stream(const SkString& outputDir, |
return NULL; |
} |
- SkAutoTDelete<SkFILEWStream> stream( |
- SkNEW_ARGS(SkFILEWStream, (outputPath.c_str()))); |
+ SkAutoTDelete<SkFILEWStream> stream(new SkFILEWStream(outputPath.c_str())); |
if (!stream.get() || !stream->isValid()) { |
SkDebugf("Could not write to file %s\n", outputPath.c_str()); |
return NULL; |