diff options
author | halcanary <halcanary@google.com> | 2015-08-27 07:41:13 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-08-27 07:41:16 -0700 |
commit | 96fcdcc219d2a0d3579719b84b28bede76efba64 (patch) | |
tree | 0ec5ea0193d8292df8bf5ed9dd8498a5eb5763dd /tests/DiscardableMemoryTest.cpp | |
parent | 435af2f736c85c3274a0c6760a3523810750d237 (diff) | |
download | skia-96fcdcc219d2a0d3579719b84b28bede76efba64.tar.gz |
Style Change: NULL->nullptr
DOCS_PREVIEW= https://skia.org/?cl=1316233002
Review URL: https://codereview.chromium.org/1316233002
Diffstat (limited to 'tests/DiscardableMemoryTest.cpp')
-rw-r--r-- | tests/DiscardableMemoryTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/DiscardableMemoryTest.cpp b/tests/DiscardableMemoryTest.cpp index da36ffd8b0..28dd6e98a5 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(); |