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

Unified Diff: tools/render_pdfs_main.cpp

Issue 1316233002: Style Change: NULL->nullptr (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-27 (Thursday) 10:25:06 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 | « tools/pinspect.cpp ('k') | tools/render_pictures_main.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/render_pdfs_main.cpp
diff --git a/tools/render_pdfs_main.cpp b/tools/render_pdfs_main.cpp
index 9b80ef4d500565d12bfc7d0a439c562daebb0e8f..b182d8b408a25752b1fd5e38dd78ee165ac92040 100644
--- a/tools/render_pdfs_main.cpp
+++ b/tools/render_pdfs_main.cpp
@@ -120,13 +120,13 @@ static SkWStream* open_stream(const SkString& outputDir,
SkString outputPath;
if (!make_output_filepath(&outputPath, outputDir, inputFilename)) {
- return NULL;
+ return nullptr;
}
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;
+ return nullptr;
}
return stream.detach();
@@ -222,7 +222,7 @@ int tool_main_core(int argc, char** argv) {
SkAutoTUnref<SkPicture> picture(
SkPicture::CreateFromStream(&inputStream));
- if (NULL == picture.get()) {
+ if (nullptr == picture.get()) {
SkDebugf("Could not read an SkPicture from %s\n",
files[i].c_str());
++failures;
« no previous file with comments | « tools/pinspect.cpp ('k') | tools/render_pictures_main.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698