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/SamplePath.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/SamplePath.cpp')
-rw-r--r-- | samplecode/SamplePath.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/samplecode/SamplePath.cpp b/samplecode/SamplePath.cpp index c09ff20206..c977ca0dc2 100644 --- a/samplecode/SamplePath.cpp +++ b/samplecode/SamplePath.cpp @@ -57,9 +57,9 @@ static void test_cubic2() { { #ifdef SK_BUILD_FOR_WIN // windows doesn't have strtof - float x = (float)strtod("9.94099e+07", NULL); + float x = (float)strtod("9.94099e+07", nullptr); #else - float x = strtof("9.94099e+07", NULL); + float x = strtof("9.94099e+07", nullptr); #endif int ix = (int)x; int fx = (int)(x * 65536); @@ -211,7 +211,7 @@ protected: SkView::Click* onFindClickHandler(SkScalar x, SkScalar y, unsigned modi) override { fShowHairline = !fShowHairline; - this->inval(NULL); + this->inval(nullptr); return this->INHERITED::onFindClickHandler(x, y, modi); } @@ -269,7 +269,7 @@ public: void toggle(bool& value) { value = !value; - this->inval(NULL); + this->inval(nullptr); } protected: @@ -323,7 +323,7 @@ protected: if (click->fMeta.findS32("index", &index)) { SkASSERT((unsigned)index < N); fPts[index] = click->fCurr; - this->inval(NULL); + this->inval(nullptr); return true; } return false; |