aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/private/SkPathRef.h
diff options
context:
space:
mode:
authorGravatar Ben Wagner <bungeman@google.com>2017-08-28 10:34:05 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-08-28 17:48:57 +0000
commita93a14a99816d25b773f0b12868143702baf44bf (patch)
tree727e7cb88867bdc12cbcf8baa354ae3afc9444e2 /include/private/SkPathRef.h
parent695db408437807d049ecc02b3b852704092728f2 (diff)
Convert NULL and 0 to nullptr.
This was created by looking at warnings produced by clang's -Wzero-as-null-pointer-constant. This updates most issues in Skia code. However, there are places where GL and Vulkan want pointer values which are explicitly 0, external headers which use NULL directly, and possibly more uses in un-compiled sources (for other platforms). Change-Id: Id22fbac04d5c53497a53d734f0896b4f06fe8345 Reviewed-on: https://skia-review.googlesource.com/39521 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Ben Wagner <bungeman@google.com>
Diffstat (limited to 'include/private/SkPathRef.h')
-rw-r--r--include/private/SkPathRef.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/private/SkPathRef.h b/include/private/SkPathRef.h
index f75b999f60..6d353089b0 100644
--- a/include/private/SkPathRef.h
+++ b/include/private/SkPathRef.h
@@ -83,7 +83,7 @@ public:
*/
SkPoint* growForRepeatedVerb(int /*SkPath::Verb*/ verb,
int numVbs,
- SkScalar** weights = NULL) {
+ SkScalar** weights = nullptr) {
return fPathRef->growForRepeatedVerb(verb, numVbs, weights);
}
@@ -328,8 +328,8 @@ private:
fBoundsIsDirty = true; // this also invalidates fIsFinite
fPointCnt = 0;
fVerbCnt = 0;
- fVerbs = NULL;
- fPoints = NULL;
+ fVerbs = nullptr;
+ fPoints = nullptr;
fFreeSpace = 0;
fGenerationID = kEmptyGenID;
fSegmentMask = 0;
@@ -395,8 +395,8 @@ private:
if (sizeDelta < 0 || static_cast<size_t>(sizeDelta) >= 3 * minSize) {
sk_free(fPoints);
- fPoints = NULL;
- fVerbs = NULL;
+ fPoints = nullptr;
+ fVerbs = nullptr;
fFreeSpace = 0;
fVerbCnt = 0;
fPointCnt = 0;