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 --- tests/TextureCompressionTest.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'tests/TextureCompressionTest.cpp') diff --git a/tests/TextureCompressionTest.cpp b/tests/TextureCompressionTest.cpp index ca8da28858..d2e6db209b 100644 --- a/tests/TextureCompressionTest.cpp +++ b/tests/TextureCompressionTest.cpp @@ -63,7 +63,7 @@ DEF_TEST(CompressAlphaFailDimensions, reporter) { continue; } SkAutoDataUnref data(SkTextureCompressor::CompressBitmapToFormat(pixmap, fmt)); - REPORTER_ASSERT(reporter, NULL == data); + REPORTER_ASSERT(reporter, nullptr == data); } } @@ -92,7 +92,7 @@ DEF_TEST(CompressAlphaFailColorType, reporter) { continue; } SkAutoDataUnref data(SkTextureCompressor::CompressBitmapToFormat(pixmap, fmt)); - REPORTER_ASSERT(reporter, NULL == data); + REPORTER_ASSERT(reporter, nullptr == data); } } @@ -120,7 +120,7 @@ DEF_TEST(CompressCheckerboard, reporter) { { uint8_t* pixels = reinterpret_cast(pixmap.writable_addr()); REPORTER_ASSERT(reporter, pixels); - if (NULL == pixels) { + if (nullptr == pixels) { return; } @@ -139,7 +139,7 @@ DEF_TEST(CompressCheckerboard, reporter) { SkAutoMalloc decompMemory(kWidth*kHeight); uint8_t* decompBuffer = reinterpret_cast(decompMemory.get()); REPORTER_ASSERT(reporter, decompBuffer); - if (NULL == decompBuffer) { + if (nullptr == decompBuffer) { return; } @@ -154,7 +154,7 @@ DEF_TEST(CompressCheckerboard, reporter) { SkAutoDataUnref data(SkTextureCompressor::CompressBitmapToFormat(pixmap, fmt)); REPORTER_ASSERT(reporter, data); - if (NULL == data) { + if (nullptr == data) { continue; } @@ -167,7 +167,7 @@ DEF_TEST(CompressCheckerboard, reporter) { const uint8_t* pixels = reinterpret_cast(pixmap.addr()); REPORTER_ASSERT(reporter, pixels); - if (NULL == pixels) { + if (nullptr == pixels) { continue; } @@ -213,7 +213,7 @@ DEF_TEST(CompressLATC, reporter) { SkAutoDataUnref latcData( SkTextureCompressor::CompressBitmapToFormat(pixmap, kLATCFormat)); REPORTER_ASSERT(reporter, latcData); - if (NULL == latcData) { + if (nullptr == latcData) { continue; } -- cgit v1.2.3