Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(287)

Unified Diff: samplecode/SampleFilterQuality.cpp

Issue 1316233002: Style Change: NULL->nullptr (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-27 (Thursday) 10:25:06 EDT Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « samplecode/SampleFilterFuzz.cpp ('k') | samplecode/SampleFontCache.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samplecode/SampleFilterQuality.cpp
diff --git a/samplecode/SampleFilterQuality.cpp b/samplecode/SampleFilterQuality.cpp
index 12a04a6d6000307468c324079b4206a043357f53..8bc2b07c5b4805f178bad59930ea2c038885025e 100644
--- a/samplecode/SampleFilterQuality.cpp
+++ b/samplecode/SampleFilterQuality.cpp
@@ -59,7 +59,7 @@ static SkImage* zoom_up(SkImage* orig) {
canvas->scale(S, S);
canvas->translate(-SkScalarHalf(orig->width()) * (S - D) / S,
-SkScalarHalf(orig->height()) * (S - D) / S);
- canvas->drawImage(orig, 0, 0, NULL);
+ canvas->drawImage(orig, 0, 0, nullptr);
if (S > 3) {
SkPaint paint;
@@ -165,11 +165,11 @@ protected:
SkUnichar uni;
if (SampleCode::CharQ(*evt, &uni)) {
switch (uni) {
- case '1': fAngle.inc(-ANGLE_DELTA); this->inval(NULL); return true;
- case '2': fAngle.inc( ANGLE_DELTA); this->inval(NULL); return true;
- case '3': fScale.inc(-SCALE_DELTA); this->inval(NULL); return true;
- case '4': fScale.inc( SCALE_DELTA); this->inval(NULL); return true;
- case '5': fShowFatBits = !fShowFatBits; this->inval(NULL); return true;
+ case '1': fAngle.inc(-ANGLE_DELTA); this->inval(nullptr); return true;
+ case '2': fAngle.inc( ANGLE_DELTA); this->inval(nullptr); return true;
+ case '3': fScale.inc(-SCALE_DELTA); this->inval(nullptr); return true;
+ case '4': fScale.inc( SCALE_DELTA); this->inval(nullptr); return true;
+ case '5': fShowFatBits = !fShowFatBits; this->inval(nullptr); return true;
default: break;
}
}
@@ -283,7 +283,7 @@ protected:
}
virtual bool handleKey(SkKey key) {
- this->inval(NULL);
+ this->inval(nullptr);
return true;
}
« no previous file with comments | « samplecode/SampleFilterFuzz.cpp ('k') | samplecode/SampleFontCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698