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/TextBlobBench.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bench/TextBlobBench.cpp') 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 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()); -- cgit v1.2.3