Style Change: SkNEW->new; SkDELETE->delete
DOCS_PREVIEW= https://skia.org/?cl=1316123003
Review URL: https://codereview.chromium.org/1316123003
diff --git a/tools/render_pdfs_main.cpp b/tools/render_pdfs_main.cpp
index 4e13f7e..9b80ef4 100644
--- a/tools/render_pdfs_main.cpp
+++ b/tools/render_pdfs_main.cpp
@@ -115,7 +115,7 @@
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 @@
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;