aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/gradients_no_texture.cpp
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2015-08-27 07:41:13 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-08-27 07:41:16 -0700
commit96fcdcc219d2a0d3579719b84b28bede76efba64 (patch)
tree0ec5ea0193d8292df8bf5ed9dd8498a5eb5763dd /gm/gradients_no_texture.cpp
parent435af2f736c85c3274a0c6760a3523810750d237 (diff)
Style Change: NULL->nullptr
Diffstat (limited to 'gm/gradients_no_texture.cpp')
-rw-r--r--gm/gradients_no_texture.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/gm/gradients_no_texture.cpp b/gm/gradients_no_texture.cpp
index d06ae5bdbf..3e73d1b4b3 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) {