Index: tools/bench_pictures_main.cpp |
diff --git a/tools/bench_pictures_main.cpp b/tools/bench_pictures_main.cpp |
index b29f4d106e49309e94f7b47eac5f5699884cd254..865bb5184fb307d1f6c0379b6c3a35981ddc4ba8 100644 |
--- a/tools/bench_pictures_main.cpp |
+++ b/tools/bench_pictures_main.cpp |
@@ -431,13 +431,9 @@ int tool_main(int argc, char** argv) { |
SkAutoTDelete<PictureJSONResultsWriter> jsonWriter; |
if (FLAGS_jsonLog.count() == 1) { |
SkASSERT(FLAGS_builderName.count() == 1 && FLAGS_gitHash.count() == 1); |
- jsonWriter.reset(SkNEW(PictureJSONResultsWriter( |
- FLAGS_jsonLog[0], |
- FLAGS_builderName[0], |
- FLAGS_buildNumber, |
- FLAGS_timestamp, |
- FLAGS_gitHash[0], |
- FLAGS_gitNumber))); |
+ jsonWriter.reset(new PictureJSONResultsWriter(FLAGS_jsonLog[0], FLAGS_builderName[0], |
+ FLAGS_buildNumber, FLAGS_timestamp, |
+ FLAGS_gitHash[0], FLAGS_gitNumber)); |
gWriter.add(jsonWriter.get()); |
} |