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

Unified Diff: samplecode/SamplePdfFileViewer.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 | « samplecode/SamplePathFuzz.cpp ('k') | samplecode/SamplePictFile.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samplecode/SamplePdfFileViewer.cpp
diff --git a/samplecode/SamplePdfFileViewer.cpp b/samplecode/SamplePdfFileViewer.cpp
index 747f729d3e0c6eb7b9b4c113490277e505d9a705..950d42b3fdf3905610530910b9a02f4bf847e105 100644
--- a/samplecode/SamplePdfFileViewer.cpp
+++ b/samplecode/SamplePdfFileViewer.cpp
@@ -38,8 +38,8 @@ private:
static SkPicture* LoadPdf(const char path[]) {
SkAutoTDelete<SkPdfRenderer> renderer(SkPdfRenderer::CreateFromFile(path));
- if (NULL == renderer.get()) {
- return NULL;
+ if (nullptr == renderer.get()) {
+ return nullptr;
}
SkPicture* pic = new SkPicture;
@@ -51,8 +51,8 @@ private:
}
public:
- PdfFileViewer(const char name[] = NULL) : fFilename(name) {
- fPicture = NULL;
+ PdfFileViewer(const char name[] = nullptr) : fFilename(name) {
+ fPicture = nullptr;
}
virtual ~PdfFileViewer() {
« no previous file with comments | « samplecode/SamplePathFuzz.cpp ('k') | samplecode/SamplePictFile.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698