Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(347)

Unified Diff: src/svg/skp2svg.cpp

Issue 1316123003: Style Change: SkNEW->new; SkDELETE->delete (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-26 (Wednesday) 15:59:00 EDT Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/svg/SkSVGDevice.cpp ('k') | src/utils/SkCamera.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « src/svg/SkSVGDevice.cpp ('k') | src/utils/SkCamera.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698