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

Unified Diff: src/doc/SkDocument_XPS.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 | « src/doc/SkDocument_PDF_None.cpp ('k') | src/doc/SkDocument_XPS_None.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/doc/SkDocument_XPS.cpp
diff --git a/src/doc/SkDocument_XPS.cpp b/src/doc/SkDocument_XPS.cpp
index 943d0a882a377ec82a7c3a47b939eadbe60e19b6..57fa0b80c6014460765e14d83a28ff0a5b55d0c8 100644
--- a/src/doc/SkDocument_XPS.cpp
+++ b/src/doc/SkDocument_XPS.cpp
@@ -42,7 +42,7 @@ protected:
void onEndPage() override {
SkASSERT(fCanvas.get());
fCanvas->flush();
- fCanvas.reset(NULL);
+ fCanvas.reset(nullptr);
fDevice.endSheet();
}
@@ -63,7 +63,7 @@ private:
///////////////////////////////////////////////////////////////////////////////
SkDocument* SkDocument::CreateXPS(SkWStream* stream, SkScalar dpi) {
- return stream ? new SkDocument_XPS(stream, NULL, dpi) : NULL;
+ return stream ? new SkDocument_XPS(stream, nullptr, dpi) : nullptr;
}
static void delete_wstream(SkWStream* stream, bool aborted) { delete stream; }
@@ -71,7 +71,7 @@ static void delete_wstream(SkWStream* stream, bool aborted) { delete stream; }
SkDocument* SkDocument::CreateXPS(const char path[], SkScalar dpi) {
SkAutoTDelete<SkFILEWStream> stream(new SkFILEWStream(path));
if (!stream->isValid()) {
- return NULL;
+ return nullptr;
}
return new SkDocument_XPS(stream.detach(), delete_wstream, dpi);
}
« no previous file with comments | « src/doc/SkDocument_PDF_None.cpp ('k') | src/doc/SkDocument_XPS_None.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698