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/ChartBench.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bench/ChartBench.cpp') diff --git a/bench/ChartBench.cpp b/bench/ChartBench.cpp index 61f97a2f2a..8b3aa73cff 100644 --- a/bench/ChartBench.cpp +++ b/bench/ChartBench.cpp @@ -29,7 +29,7 @@ static void gen_data(SkScalar yAvg, SkScalar ySpread, int count, // Generates a path to stroke along the top of each plot and a fill path for the area below each // plot. The fill path is bounded below by the bottomData plot points or a horizontal line at -// yBase if bottomData == NULL. +// yBase if bottomData == nullptr. // The plots are animated by rotating the data points by leftShift. static void gen_paths(const SkTDArray& topData, const SkTDArray* bottomData, @@ -40,7 +40,7 @@ static void gen_paths(const SkTDArray& topData, plot->rewind(); fill->rewind(); plot->incReserve(topData.count()); - if (NULL == bottomData) { + if (nullptr == bottomData) { fill->incReserve(topData.count() + 2); } else { fill->incReserve(2 * topData.count()); @@ -149,7 +149,7 @@ protected: fillPaint.setAntiAlias(fAA); fillPaint.setStyle(SkPaint::kFill_Style); - SkTDArray* prevData = NULL; + SkTDArray* prevData = nullptr; for (int i = 0; i < kNumGraphs; ++i) { gen_paths(fData[i], prevData, -- cgit v1.2.3