From 96fcdcc219d2a0d3579719b84b28bede76efba64 Mon Sep 17 00:00:00 2001 From: halcanary Date: Thu, 27 Aug 2015 07:41:13 -0700 Subject: Style Change: NULL->nullptr DOCS_PREVIEW= https://skia.org/?cl=1316233002 Review URL: https://codereview.chromium.org/1316233002 --- bench/PathBench.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bench/PathBench.cpp') diff --git a/bench/PathBench.cpp b/bench/PathBench.cpp index f2e84c2bb2..8c157119d4 100644 --- a/bench/PathBench.cpp +++ b/bench/PathBench.cpp @@ -224,9 +224,9 @@ protected: void createData(int minVerbs, int maxVerbs, bool allowMoves = true, - SkRect* bounds = NULL) { + SkRect* bounds = nullptr) { SkRect tempBounds; - if (NULL == bounds) { + if (nullptr == bounds) { tempBounds.setXYWH(0, 0, SK_Scalar1, SK_Scalar1); bounds = &tempBounds; } @@ -711,7 +711,7 @@ protected: if (fZeroRad) { make_arb_round_rect(&temp, r, 0, 0); - SkASSERT(temp.isRect(NULL)); + SkASSERT(temp.isRect(nullptr)); } else { make_arb_round_rect(&temp, r, r.width() / 10, r.height() / 15); } @@ -851,7 +851,7 @@ public: } else { for (int i = 0; i < loops; ++i) { for (int j = 0; j < 1000; ++j) { - fRQ.evalAt(0.4f, &fDst[0].fPts[0], NULL); + fRQ.evalAt(0.4f, &fDst[0].fPts[0], nullptr); } } } @@ -876,7 +876,7 @@ public: } else { for (int i = 0; i < loops; ++i) { for (int j = 0; j < 1000; ++j) { - fRQ.evalAt(0.4f, NULL, &fDst[0].fPts[0]); + fRQ.evalAt(0.4f, nullptr, &fDst[0].fPts[0]); } } } -- cgit v1.2.3