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/Writer32Test.cpp | |
parent | 435af2f736c85c3274a0c6760a3523810750d237 (diff) |
Style Change: NULL->nullptr
DOCS_PREVIEW= https://skia.org/?cl=1316233002
Review URL: https://codereview.chromium.org/1316233002
Diffstat (limited to 'tests/Writer32Test.cpp')
-rw-r--r-- | tests/Writer32Test.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/Writer32Test.cpp b/tests/Writer32Test.cpp index d1366082ae..5849d731ef 100644 --- a/tests/Writer32Test.cpp +++ b/tests/Writer32Test.cpp @@ -31,8 +31,8 @@ static void test_string_null(skiatest::Reporter* reporter) { uint8_t storage[8]; SkWriter32 writer(storage, sizeof(storage)); - // Can we write NULL? - writer.writeString(NULL); + // Can we write nullptr? + writer.writeString(nullptr); const int32_t expected[] = { 0x0, 0x0 }; check_contents(reporter, writer, expected, sizeof(expected)); } @@ -241,7 +241,7 @@ DEF_TEST(Writer32_contiguous, reporter) { writer.reset(storage, sizeof(storage)); // This write is small enough to fit in storage, so it's contiguous. test1(reporter, &writer); - REPORTER_ASSERT(reporter, writer.contiguousArray() != NULL); + REPORTER_ASSERT(reporter, writer.contiguousArray() != nullptr); // Everything other aspect of contiguous/non-contiguous is an // implementation detail, not part of the public contract for |