Index: tests/MaskCacheTest.cpp |
diff --git a/tests/MaskCacheTest.cpp b/tests/MaskCacheTest.cpp |
index f4e316c6c9712aeaa76d101c9ceef0b17f012c27..13cd354c91bf3c0e2ab7c2be5ac2bc90045cca66 100644 |
--- a/tests/MaskCacheTest.cpp |
+++ b/tests/MaskCacheTest.cpp |
@@ -24,7 +24,7 @@ static void check_data(skiatest::Reporter* reporter, SkCachedData* data, |
int refcnt, CachedState cacheState, LockedState lockedState) { |
REPORTER_ASSERT(reporter, data->testing_only_getRefCnt() == refcnt); |
REPORTER_ASSERT(reporter, data->testing_only_isInCache() == (kInCache == cacheState)); |
- bool isLocked = (data->data() != NULL); |
+ bool isLocked = (data->data() != nullptr); |
REPORTER_ASSERT(reporter, isLocked == (lockedState == kLocked)); |
} |
@@ -40,7 +40,7 @@ DEF_TEST(RRectMaskCache, reporter) { |
SkMask mask; |
SkCachedData* data = SkMaskCache::FindAndRef(sigma, style, quality, rrect, &mask, &cache); |
- REPORTER_ASSERT(reporter, NULL == data); |
+ REPORTER_ASSERT(reporter, nullptr == data); |
size_t size = 256; |
data = cache.newCachedData(size); |
@@ -78,7 +78,7 @@ DEF_TEST(RectsMaskCache, reporter) { |
SkMask mask; |
SkCachedData* data = SkMaskCache::FindAndRef(sigma, style, quality, rects, 1, &mask, &cache); |
- REPORTER_ASSERT(reporter, NULL == data); |
+ REPORTER_ASSERT(reporter, nullptr == data); |
size_t size = 256; |
data = cache.newCachedData(size); |