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

Unified Diff: bench/PathBench.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 | « bench/PatchGridBench.cpp ('k') | bench/PerlinNoiseBench.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/PathBench.cpp
diff --git a/bench/PathBench.cpp b/bench/PathBench.cpp
index f2e84c2bb243b4da194a4dc5de9d09d0ebef7995..8c157119d49a51355f67c9d1bef9627434d1b726 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]);
}
}
}
« no previous file with comments | « bench/PatchGridBench.cpp ('k') | bench/PerlinNoiseBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698