diff options
author | Yi Kong <yikong@google.com> | 2018-07-11 17:37:34 -0700 |
---|---|---|
committer | Yi Kong <yikong@google.com> | 2018-07-13 15:28:59 -0700 |
commit | c1a156254864f39cdefffaac34dd39dbe2853129 (patch) | |
tree | 5d71b353e76f8487e0f69eab1fdb892f62d4dda2 /libutils/include/utils/AndroidThreads.h | |
parent | d73414c5e819ef7a921ac92f1f5c7545d4f87ef1 (diff) | |
download | system_core-c1a156254864f39cdefffaac34dd39dbe2853129.tar.gz system_core-c1a156254864f39cdefffaac34dd39dbe2853129.tar.bz2 system_core-c1a156254864f39cdefffaac34dd39dbe2853129.zip |
Modernize codebase by replacing NULL with nullptr
Fixes -Wzero-as-null-pointer-constant warning for binder.
Test: m
Bug: 68236239
Change-Id: I8184bd6aa4ebff1bd8c88dad16886e98df853b03
Diffstat (limited to 'libutils/include/utils/AndroidThreads.h')
-rw-r--r-- | libutils/include/utils/AndroidThreads.h | 2 |
1 files changed, 1 insertions, 1 deletions
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; |