summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYi Kong2018-07-16 20:11:34 -0500
committerYi Kong2018-07-16 20:11:34 -0500
commite1731a4f2e05f1abb4a45602067708851eaf1e14 (patch)
tree339c0ce3d3de7d6f5e0fb9bdada9b6210d1d470f /libutils/NativeHandle.cpp
parent895acebe946e34d2626716c5c4d7d7f2cc28c39d (diff)
downloadplatform-system-core-e1731a4f2e05f1abb4a45602067708851eaf1e14.tar.gz
platform-system-core-e1731a4f2e05f1abb4a45602067708851eaf1e14.tar.xz
platform-system-core-e1731a4f2e05f1abb4a45602067708851eaf1e14.zip
[libutils] Modernize codebase by replacing NULL with nullptr
Fixes -Wzero-as-null-pointer-constant warning. Test: m Bug: 68236239 Change-Id: I5e89ec8c42151875439d2656475a8739ab9cb7dc
Diffstat (limited to 'libutils/NativeHandle.cpp')
-rw-r--r--libutils/NativeHandle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libutils/NativeHandle.cpp b/libutils/NativeHandle.cpp
index 97d06b8bd..d437a9fc9 100644
--- a/libutils/NativeHandle.cpp
+++ b/libutils/NativeHandle.cpp
@@ -20,7 +20,7 @@
20namespace android { 20namespace android {
21 21
22sp<NativeHandle> NativeHandle::create(native_handle_t* handle, bool ownsHandle) { 22sp<NativeHandle> NativeHandle::create(native_handle_t* handle, bool ownsHandle) {
23 return handle ? new NativeHandle(handle, ownsHandle) : NULL; 23 return handle ? new NativeHandle(handle, ownsHandle) : nullptr;
24} 24}
25 25
26NativeHandle::NativeHandle(native_handle_t* handle, bool ownsHandle) 26NativeHandle::NativeHandle(native_handle_t* handle, bool ownsHandle)