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

Unified Diff: tests/DiscardableMemoryTest.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/DiscardableMemoryPoolTest.cpp ('k') | tests/DrawBitmapRectTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/DiscardableMemoryTest.cpp
diff --git a/tests/DiscardableMemoryTest.cpp b/tests/DiscardableMemoryTest.cpp
index da36ffd8b00342accac6eb7d2baee83d76beac19..28dd6e98a5d1bf35eacc3414986efc0885a3833c 100644
--- a/tests/DiscardableMemoryTest.cpp
+++ b/tests/DiscardableMemoryTest.cpp
@@ -13,12 +13,12 @@ DEF_TEST(DiscardableMemory, reporter) {
const char testString[] = "HELLO, WORLD!";
const size_t len = sizeof(testString);
SkAutoTDelete<SkDiscardableMemory> dm(SkDiscardableMemory::Create(len));
- REPORTER_ASSERT(reporter, dm.get() != NULL);
- if (NULL == dm.get()) {
+ REPORTER_ASSERT(reporter, dm.get() != nullptr);
+ if (nullptr == dm.get()) {
return;
}
void* ptr = dm->data();
- REPORTER_ASSERT(reporter, ptr != NULL);
+ REPORTER_ASSERT(reporter, ptr != nullptr);
memcpy(ptr, testString, sizeof(testString));
dm->unlock();
bool success = dm->lock();
« no previous file with comments | « tests/DiscardableMemoryPoolTest.cpp ('k') | tests/DrawBitmapRectTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698