diff options
Diffstat (limited to 'samplecode/SampleDraw.cpp')
| -rw-r--r-- | samplecode/SampleDraw.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/samplecode/SampleDraw.cpp b/samplecode/SampleDraw.cpp index 616650f9ef..5e239c61f2 100644 --- a/samplecode/SampleDraw.cpp +++ b/samplecode/SampleDraw.cpp @@ -22,7 +22,7 @@ static void test_clearonlayers(SkCanvas* canvas) { c.clipRect(rect); - c.saveLayer(NULL, NULL); + c.saveLayer(nullptr, nullptr); rect = SkRect::MakeXYWH(50, 10, 40, 80); c.clipRect(rect, SkRegion::kUnion_Op); @@ -262,7 +262,7 @@ class DrawView : public SkView { SkTDArray<Draw*> fList; public: - DrawView() : fDraw(NULL) { + DrawView() : fDraw(nullptr) { fFactory = new RectFactory; } @@ -289,7 +289,7 @@ public: return *iter; } } - return NULL; + return nullptr; } protected: @@ -344,7 +344,7 @@ protected: } else { fDraw->unref(); } - fDraw = NULL; + fDraw = nullptr; } return true; } @@ -365,7 +365,7 @@ protected: } } } - this->inval(NULL); + this->inval(nullptr); return true; } |
