aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode/SampleIdentityScale.cpp
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2015-08-27 07:41:13 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-08-27 07:41:16 -0700
commit96fcdcc219d2a0d3579719b84b28bede76efba64 (patch)
tree0ec5ea0193d8292df8bf5ed9dd8498a5eb5763dd /samplecode/SampleIdentityScale.cpp
parent435af2f736c85c3274a0c6760a3523810750d237 (diff)
Style Change: NULL->nullptr
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: