aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode/SampleIdentityScale.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'samplecode/SampleIdentityScale.cpp')
-rw-r--r--samplecode/SampleIdentityScale.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/samplecode/SampleIdentityScale.cpp b/samplecode/SampleIdentityScale.cpp
index 7a329dedd0..5a4e39d36b 100644
--- a/samplecode/SampleIdentityScale.cpp
+++ b/samplecode/SampleIdentityScale.cpp
@@ -25,7 +25,7 @@ class IdentityScaleView : public SampleView {
public:
IdentityScaleView(const char imageFilename[]) {
SkString resourcePath = GetResourcePath(imageFilename);
- SkImageDecoder* codec = NULL;
+ SkImageDecoder* codec = nullptr;
SkFILEStream stream(resourcePath.c_str());
if (stream.isValid()) {
codec = SkImageDecoder::Factory(&stream);
@@ -80,7 +80,7 @@ protected:
canvas->drawBitmap( fBM, 100, 100, &paint );
canvas->restore();
canvas->drawText( text, strlen(text), 100, 400, paint );
- this->inval(NULL);
+ this->inval(nullptr);
}
private: