Index: samplecode/SampleFilterFuzz.cpp |
diff --git a/samplecode/SampleFilterFuzz.cpp b/samplecode/SampleFilterFuzz.cpp |
index bae7c21a5f6adcbeae7b53ca0544d0b45575b133..ca4b8e2db3c9fa0d6eb4f259ee114eee0c79e0e1 100644 |
--- a/samplecode/SampleFilterFuzz.cpp |
+++ b/samplecode/SampleFilterFuzz.cpp |
@@ -39,7 +39,7 @@ |
//#define SK_ADD_RANDOM_BIT_FLIPS |
//#define SK_FUZZER_IS_VERBOSE |
-static const uint32_t kSeed = (uint32_t)(time(NULL)); |
+static const uint32_t kSeed = (uint32_t)(time(nullptr)); |
static SkRandom gRand(kSeed); |
static bool return_large = false; |
static bool return_undef = false; |
@@ -245,7 +245,7 @@ static void drawSomething(SkCanvas* canvas) { |
canvas->save(); |
canvas->scale(0.5f, 0.5f); |
- canvas->drawBitmap(make_bitmap(), 0, 0, NULL); |
+ canvas->drawBitmap(make_bitmap(), 0, 0, nullptr); |
canvas->restore(); |
paint.setAntiAlias(true); |
@@ -260,7 +260,7 @@ static void drawSomething(SkCanvas* canvas) { |
static SkImageFilter* make_image_filter(bool canBeNull = true) { |
SkImageFilter* filter = 0; |
- // Add a 1 in 3 chance to get a NULL input |
+ // Add a 1 in 3 chance to get a nullptr input |
if (canBeNull && (R(3) == 1)) { return filter; } |
enum { ALPHA_THRESHOLD, MERGE, COLOR, LUT3D, BLUR, MAGNIFIER, |
@@ -380,7 +380,7 @@ static SkImageFilter* make_image_filter(bool canBeNull = true) { |
case DROP_SHADOW: |
filter = SkDropShadowImageFilter::Create(make_scalar(), make_scalar(), make_scalar(true), |
make_scalar(true), make_color(), make_shadow_mode(), make_image_filter(), |
- NULL); |
+ nullptr); |
break; |
case MORPHOLOGY: |
if (R(2) == 1) { |