Index: samplecode/SampleSubpixelTranslate.cpp |
diff --git a/samplecode/SampleSubpixelTranslate.cpp b/samplecode/SampleSubpixelTranslate.cpp |
index 0f7639efa28d7a26c47309f6fabaf72911880327..7e067a6dd45ca077430068f0be3019c8c0e6daa0 100644 |
--- a/samplecode/SampleSubpixelTranslate.cpp |
+++ b/samplecode/SampleSubpixelTranslate.cpp |
@@ -27,7 +27,7 @@ public: |
: fHorizontalVelocity(horizontalVelocity), |
fVerticalVelocity(verticalVelocity) { |
SkString resourcePath = GetResourcePath(imageFilename); |
- SkImageDecoder* codec = NULL; |
+ SkImageDecoder* codec = nullptr; |
SkFILEStream stream(resourcePath.c_str()); |
if (stream.isValid()) { |
codec = SkImageDecoder::Factory(&stream); |
@@ -109,7 +109,7 @@ protected: |
fCurPos.fX += fHorizontalVelocity; |
fCurPos.fY += fVerticalVelocity; |
- this->inval(NULL); |
+ this->inval(nullptr); |
} |
private: |