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

Unified Diff: samplecode/SampleDraw.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/SampleDitherBitmap.cpp ('k') | samplecode/SampleEffects.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samplecode/SampleDraw.cpp
diff --git a/samplecode/SampleDraw.cpp b/samplecode/SampleDraw.cpp
index 616650f9ef969d344a67f7feb91f79753fc70894..5e239c61f2bfac7c6e790e91e34dbd7aa596df09 100644
--- a/samplecode/SampleDraw.cpp
+++ b/samplecode/SampleDraw.cpp
@@ -22,7 +22,7 @@ static void test_clearonlayers(SkCanvas* canvas) {
c.clipRect(rect);
- c.saveLayer(NULL, NULL);
+ c.saveLayer(nullptr, nullptr);
rect = SkRect::MakeXYWH(50, 10, 40, 80);
c.clipRect(rect, SkRegion::kUnion_Op);
@@ -262,7 +262,7 @@ class DrawView : public SkView {
SkTDArray<Draw*> fList;
public:
- DrawView() : fDraw(NULL) {
+ DrawView() : fDraw(nullptr) {
fFactory = new RectFactory;
}
@@ -289,7 +289,7 @@ public:
return *iter;
}
}
- return NULL;
+ return nullptr;
}
protected:
@@ -344,7 +344,7 @@ protected:
} else {
fDraw->unref();
}
- fDraw = NULL;
+ fDraw = nullptr;
}
return true;
}
@@ -365,7 +365,7 @@ protected:
}
}
}
- this->inval(NULL);
+ this->inval(nullptr);
return true;
}
« no previous file with comments | « samplecode/SampleDitherBitmap.cpp ('k') | samplecode/SampleEffects.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698