Index: samplecode/SampleTextOnPath.cpp |
diff --git a/samplecode/SampleTextOnPath.cpp b/samplecode/SampleTextOnPath.cpp |
index 7ea4694761af64c418ab63dba09335feda152924..ea2ae81dc0e491098a4f2b320fd6239ee3c5e543 100644 |
--- a/samplecode/SampleTextOnPath.cpp |
+++ b/samplecode/SampleTextOnPath.cpp |
@@ -71,7 +71,7 @@ static void textPathMatrix(SkCanvas* canvas) { |
SkPathMeasure meas(path, false); |
SkScalar pathLen = meas.getLength(); |
- canvas->drawTextOnPath(text, len, path, NULL, paint); |
+ canvas->drawTextOnPath(text, len, path, nullptr, paint); |
paint.setColor(SK_ColorRED); |
matrix.setScale(-SK_Scalar1, SK_Scalar1); |
@@ -148,12 +148,12 @@ protected: |
textPathMatrix(canvas); |
if (REPEAT_COUNT > 1) |
- this->inval(NULL); |
+ this->inval(nullptr); |
} |
SkView::Click* onFindClickHandler(SkScalar x, SkScalar y, unsigned modi) override { |
fHints += 1; |
- this->inval(NULL); |
+ this->inval(nullptr); |
return this->INHERITED::onFindClickHandler(x, y, modi); |
} |