aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/TextBlobBench.cpp
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2015-08-27 07:41:13 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-08-27 07:41:16 -0700
commit96fcdcc219d2a0d3579719b84b28bede76efba64 (patch)
tree0ec5ea0193d8292df8bf5ed9dd8498a5eb5763dd /bench/TextBlobBench.cpp
parent435af2f736c85c3274a0c6760a3523810750d237 (diff)
Style Change: NULL->nullptr
Diffstat (limited to 'bench/TextBlobBench.cpp')
-rw-r--r--bench/TextBlobBench.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/bench/TextBlobBench.cpp b/bench/TextBlobBench.cpp
index d110b8d2bb..0ef5eb9654 100644
--- a/bench/TextBlobBench.cpp
+++ b/bench/TextBlobBench.cpp
@@ -25,7 +25,7 @@
class TextBlobBench : public Benchmark {
public:
TextBlobBench()
- : fTypeface(NULL) {
+ : fTypeface(nullptr) {
}
protected:
@@ -37,14 +37,14 @@ protected:
const char* text = "Hello blob!";
SkTDArray<uint16_t> glyphs;
size_t len = strlen(text);
- glyphs.append(paint.textToGlyphs(text, len, NULL));
+ glyphs.append(paint.textToGlyphs(text, len, nullptr));
paint.textToGlyphs(text, len, glyphs.begin());
SkTextBlobBuilder builder;
paint.setTextEncoding(SkPaint::kGlyphID_TextEncoding);
const SkTextBlobBuilder::RunBuffer& run = builder.allocRun(paint, glyphs.count(), 10, 10,
- NULL);
+ nullptr);
memcpy(run.glyphs, glyphs.begin(), glyphs.count() * sizeof(uint16_t));
fBlob.reset(builder.build());