Index: samplecode/SampleGradients.cpp |
diff --git a/samplecode/SampleGradients.cpp b/samplecode/SampleGradients.cpp |
index 12d24d2ae4f3713f0e1d27b91a56e0afb3b30be7..2d6f7d4bb1dfb7f5b163f7e22b0a517ab2b323da 100644 |
--- a/samplecode/SampleGradients.cpp |
+++ b/samplecode/SampleGradients.cpp |
@@ -13,7 +13,7 @@ |
static SkShader* setgrad(const SkRect& r, SkColor c0, SkColor c1) { |
SkColor colors[] = { c0, c1 }; |
SkPoint pts[] = { { r.fLeft, r.fTop }, { r.fRight, r.fTop } }; |
- return SkGradientShader::CreateLinear(pts, colors, NULL, 2, SkShader::kClamp_TileMode); |
+ return SkGradientShader::CreateLinear(pts, colors, nullptr, 2, SkShader::kClamp_TileMode); |
} |
static void test_alphagradients(SkCanvas* canvas) { |
@@ -56,10 +56,10 @@ static const SkScalar gPos2[] = { |
}; |
static const GradData gGradData[] = { |
- { 2, gColors, NULL }, |
+ { 2, gColors, nullptr }, |
{ 2, gColors, gPos0 }, |
{ 2, gColors, gPos1 }, |
- { 5, gColors, NULL }, |
+ { 5, gColors, nullptr }, |
{ 5, gColors, gPos2 } |
}; |
@@ -164,7 +164,7 @@ protected: |
if (false) { // avoid bit rot, suppress warning |
test_alphagradients(canvas); |
} |
- this->inval(NULL); |
+ this->inval(nullptr); |
} |
private: |