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

Unified Diff: tests/MaskCacheTest.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 | « tests/MallocPixelRefTest.cpp ('k') | tests/Matrix44Test.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « tests/MallocPixelRefTest.cpp ('k') | tests/Matrix44Test.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698