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

Unified Diff: gm/gradients_no_texture.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 | « gm/gradients.cpp ('k') | gm/gradtext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/gradients_no_texture.cpp
diff --git a/gm/gradients_no_texture.cpp b/gm/gradients_no_texture.cpp
index d06ae5bdbf901ba63d144c04b83d49f5d94c0a3d..3e73d1b4b3b7c8cf0abec881ac97e55e2ba85379 100644
--- a/gm/gradients_no_texture.cpp
+++ b/gm/gradients_no_texture.cpp
@@ -20,10 +20,10 @@ static const SkColor gColors[] = {
};
static const GradData gGradData[] = {
- { 1, gColors, NULL },
- { 2, gColors, NULL },
- { 3, gColors, NULL },
- { 4, gColors, NULL },
+ { 1, gColors, nullptr },
+ { 2, gColors, nullptr },
+ { 3, gColors, nullptr },
+ { 4, gColors, nullptr },
};
static SkShader* MakeLinear(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm) {
@@ -126,7 +126,7 @@ struct ColorPos {
SkScalar* fPos;
int fCount;
- ColorPos() : fColors(NULL), fPos(NULL), fCount(0) {}
+ ColorPos() : fColors(nullptr), fPos(nullptr), fCount(0) {}
~ColorPos() {
delete[] fColors;
delete[] fPos;
@@ -180,7 +180,7 @@ static void make1(ColorPos* rec) {
SK_ColorBLACK, SK_ColorWHITE, SK_ColorBLACK, SK_ColorWHITE,
SK_ColorBLACK,
};
- rec->construct(colors, NULL, SK_ARRAY_COUNT(colors));
+ rec->construct(colors, nullptr, SK_ARRAY_COUNT(colors));
}
static void make2(ColorPos* rec) {
« no previous file with comments | « gm/gradients.cpp ('k') | gm/gradtext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698