Index: src/svg/skp2svg.cpp |
diff --git a/src/svg/skp2svg.cpp b/src/svg/skp2svg.cpp |
index ae6e54c8854ac2a209e27893a1ab4968f6cde14e..2bfb6871be467c7c95b1c5d9aec293c439cd1697 100644 |
--- a/src/svg/skp2svg.cpp |
+++ b/src/svg/skp2svg.cpp |
@@ -45,17 +45,17 @@ int tool_main(int argc, char** argv) { |
SkAutoTDelete<SkWStream> outStream; |
if (FLAGS_output.count() > 0) { |
- SkFILEWStream* fileStream = SkNEW_ARGS(SkFILEWStream, (FLAGS_output[0])); |
+ SkFILEWStream* fileStream = new SkFILEWStream(FLAGS_output[0]); |
if (!fileStream->isValid()) { |
SkDebugf("Couldn't open output file for writing: %s\n", FLAGS_output[0]); |
return kIOError; |
} |
outStream.reset(fileStream); |
} else { |
- outStream.reset(SkNEW(SkDebugWStream)); |
+ outStream.reset(new SkDebugWStream); |
} |
- SkAutoTDelete<SkXMLWriter> xmlWriter(SkNEW_ARGS(SkXMLStreamWriter, (outStream.get()))); |
+ SkAutoTDelete<SkXMLWriter> xmlWriter(new SkXMLStreamWriter(outStream.get())); |
SkAutoTUnref<SkCanvas> svgCanvas(SkSVGCanvas::Create(pic->cullRect(), xmlWriter.get())); |
pic->playback(svgCanvas); |