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

Unified Diff: src/core/SkRecordPattern.h

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 | « src/core/SkRecordOpts.cpp ('k') | src/core/SkRecorder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkRecordPattern.h
diff --git a/src/core/SkRecordPattern.h b/src/core/SkRecordPattern.h
index 174665afc3b287935800b042ef462a4c76adae4a..ecc61b3aaa1cabeab38889fad5989635ce5de74b 100644
--- a/src/core/SkRecordPattern.h
+++ b/src/core/SkRecordPattern.h
@@ -19,7 +19,7 @@ namespace SkRecords {
template <typename T>
class Is {
public:
- Is() : fPtr(NULL) {}
+ Is() : fPtr(nullptr) {}
typedef T type;
type* get() { return fPtr; }
@@ -31,7 +31,7 @@ public:
template <typename U>
bool operator()(U*) {
- fPtr = NULL;
+ fPtr = nullptr;
return false;
}
@@ -43,7 +43,7 @@ private:
class IsDraw {
SK_CREATE_MEMBER_DETECTOR(paint);
public:
- IsDraw() : fPaint(NULL) {}
+ IsDraw() : fPaint(nullptr) {}
typedef SkPaint type;
type* get() { return fPaint; }
@@ -56,13 +56,13 @@ public:
template <typename T>
SK_WHEN(!HasMember_paint<T>, bool) operator()(T*) {
- fPaint = NULL;
+ fPaint = nullptr;
return false;
}
// SaveLayer has an SkPaint named paint, but it's not a draw.
bool operator()(SaveLayer*) {
- fPaint = NULL;
+ fPaint = nullptr;
return false;
}
« no previous file with comments | « src/core/SkRecordOpts.cpp ('k') | src/core/SkRecorder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698