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

Unified Diff: samplecode/SamplePath.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/SamplePatch.cpp ('k') | samplecode/SamplePathClip.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samplecode/SamplePath.cpp
diff --git a/samplecode/SamplePath.cpp b/samplecode/SamplePath.cpp
index c09ff2020602135765009eb6172302fb09be3a00..c977ca0dc2a0656a7e25eb5aeebe492c4f72192d 100644
--- a/samplecode/SamplePath.cpp
+++ b/samplecode/SamplePath.cpp
@@ -57,9 +57,9 @@ static void test_cubic2() {
{
#ifdef SK_BUILD_FOR_WIN
// windows doesn't have strtof
- float x = (float)strtod("9.94099e+07", NULL);
+ float x = (float)strtod("9.94099e+07", nullptr);
#else
- float x = strtof("9.94099e+07", NULL);
+ float x = strtof("9.94099e+07", nullptr);
#endif
int ix = (int)x;
int fx = (int)(x * 65536);
@@ -211,7 +211,7 @@ protected:
SkView::Click* onFindClickHandler(SkScalar x, SkScalar y, unsigned modi) override {
fShowHairline = !fShowHairline;
- this->inval(NULL);
+ this->inval(nullptr);
return this->INHERITED::onFindClickHandler(x, y, modi);
}
@@ -269,7 +269,7 @@ public:
void toggle(bool& value) {
value = !value;
- this->inval(NULL);
+ this->inval(nullptr);
}
protected:
@@ -323,7 +323,7 @@ protected:
if (click->fMeta.findS32("index", &index)) {
SkASSERT((unsigned)index < N);
fPts[index] = click->fCurr;
- this->inval(NULL);
+ this->inval(nullptr);
return true;
}
return false;
« no previous file with comments | « samplecode/SamplePatch.cpp ('k') | samplecode/SamplePathClip.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698