aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/RegionTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/RegionTest.cpp')
-rw-r--r--tests/RegionTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/RegionTest.cpp b/tests/RegionTest.cpp
index 121f16d6ec..4a96056419 100644
--- a/tests/RegionTest.cpp
+++ b/tests/RegionTest.cpp
@@ -266,7 +266,7 @@ DEF_TEST(Region, reporter) {
// Test that writeToMemory reports the same number of bytes whether there was a
// buffer to write to or not.
static void test_write(const SkRegion& region, skiatest::Reporter* r) {
- const size_t bytesNeeded = region.writeToMemory(NULL);
+ const size_t bytesNeeded = region.writeToMemory(nullptr);
SkAutoMalloc storage(bytesNeeded);
const size_t bytesWritten = region.writeToMemory(storage.get());
REPORTER_ASSERT(r, bytesWritten == bytesNeeded);