From 48d7608aa5806192f18e2d572f56a6bc6a10a47c Mon Sep 17 00:00:00 2001 From: Yi Kong Date: Sun, 24 Mar 2019 02:01:06 -0700 Subject: [libs/ui] Modernize codebase by replacing NULL with nullptr Fixes -Wzero-as-null-pointer-constant warning. Test: m Bug: 68236239 Change-Id: I240d39ef4328943447149700b3ece371681078d1 --- libs/ui/Region.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/ui/Region.cpp') diff --git a/libs/ui/Region.cpp b/libs/ui/Region.cpp index 3bd3748439..224dc2c122 100644 --- a/libs/ui/Region.cpp +++ b/libs/ui/Region.cpp @@ -820,7 +820,7 @@ status_t Region::unflatten(void const* buffer, size_t size) { } if (numRects > (UINT32_MAX / sizeof(Rect))) { - android_errorWriteWithInfoLog(0x534e4554, "29983260", -1, NULL, 0); + android_errorWriteWithInfoLog(0x534e4554, "29983260", -1, nullptr, 0); return NO_MEMORY; } -- cgit v1.2.3-59-g8ed1b