diff options
author | halcanary <halcanary@google.com> | 2015-08-27 07:41:13 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-08-27 07:41:16 -0700 |
commit | 96fcdcc219d2a0d3579719b84b28bede76efba64 (patch) | |
tree | 0ec5ea0193d8292df8bf5ed9dd8498a5eb5763dd /samplecode/ClockFaceView.cpp | |
parent | 435af2f736c85c3274a0c6760a3523810750d237 (diff) |
Style Change: NULL->nullptr
DOCS_PREVIEW= https://skia.org/?cl=1316233002
Review URL: https://codereview.chromium.org/1316233002
Diffstat (limited to 'samplecode/ClockFaceView.cpp')
-rw-r--r-- | samplecode/ClockFaceView.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/samplecode/ClockFaceView.cpp b/samplecode/ClockFaceView.cpp index 9a1f8f97fb..8362c35cb6 100644 --- a/samplecode/ClockFaceView.cpp +++ b/samplecode/ClockFaceView.cpp @@ -104,7 +104,7 @@ private: SkFlattenable* Dot2DPathEffect::CreateProc(SkReadBuffer& buffer) { SkMatrix matrix; buffer.readMatrix(&matrix); - return new Dot2DPathEffect(buffer.readScalar(), matrix, NULL); + return new Dot2DPathEffect(buffer.readScalar(), matrix, nullptr); } class InverseFillPE : public SkPathEffect { @@ -140,7 +140,7 @@ static SkPathEffect* makepe(float interp, SkTDArray<SkPoint>* pts) { } static void r7(SkLayerRasterizer::Builder* rastBuilder, SkPaint& p, SkScalar interp) { - p.setPathEffect(makepe(SkScalarToFloat(interp), NULL))->unref(); + p.setPathEffect(makepe(SkScalarToFloat(interp), nullptr))->unref(); rastBuilder->addLayer(p); #if 0 p.setPathEffect(new InverseFillPE())->unref(); @@ -205,7 +205,7 @@ protected: SkStrokeRec rec(SkStrokeRec::kFill_InitStyle); SkPath path, dstPath; orig.getTextPath("9", 1, 0, 0, &path); - pe->filterPath(&dstPath, path, &rec, NULL); + pe->filterPath(&dstPath, path, &rec, nullptr); SkPaint p; p.setAntiAlias(true); @@ -245,7 +245,7 @@ protected: fInterp = 0; fDx = -fDx; } - this->inval(NULL); + this->inval(nullptr); } } |