From c1a156254864f39cdefffaac34dd39dbe2853129 Mon Sep 17 00:00:00 2001 From: Yi Kong Date: Wed, 11 Jul 2018 17:37:34 -0700 Subject: Modernize codebase by replacing NULL with nullptr Fixes -Wzero-as-null-pointer-constant warning for binder. Test: m Bug: 68236239 Change-Id: I8184bd6aa4ebff1bd8c88dad16886e98df853b03 --- libutils/include/utils/AndroidThreads.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libutils/include/utils/AndroidThreads.h') diff --git a/libutils/include/utils/AndroidThreads.h b/libutils/include/utils/AndroidThreads.h index dab888d5a..a8d785175 100644 --- a/libutils/include/utils/AndroidThreads.h +++ b/libutils/include/utils/AndroidThreads.h @@ -106,7 +106,7 @@ inline bool createThreadEtc(thread_func_t entryFunction, const char* threadName = "android:unnamed_thread", int32_t threadPriority = PRIORITY_DEFAULT, size_t threadStackSize = 0, - thread_id_t *threadId = 0) + thread_id_t *threadId = nullptr) { return androidCreateThreadEtc(entryFunction, userData, threadName, threadPriority, threadStackSize, threadId) ? true : false; -- cgit v1.2.3