| Index: samplecode/SampleDraw.cpp
|
| diff --git a/samplecode/SampleDraw.cpp b/samplecode/SampleDraw.cpp
|
| index 616650f9ef969d344a67f7feb91f79753fc70894..5e239c61f2bfac7c6e790e91e34dbd7aa596df09 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;
|
| }
|
|
|
|
|