aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Host/common/HostNativeThreadBase.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-01-01 10:48:56 -0800
committerKazu Hirata <kazu@google.com>2022-01-01 10:48:56 -0800
commit913457acf07be7f22d71ac41ad1076517d7f45c6 (patch)
treee650583608a1f6fd158b3b99842a5d5f532c7008 /lldb/source/Host/common/HostNativeThreadBase.cpp
parent69ccc96162aa3471389d98184e0d683573edb47d (diff)
downloadllvm-913457acf07be7f22d71ac41ad1076517d7f45c6.tar.gz
llvm-913457acf07be7f22d71ac41ad1076517d7f45c6.tar.bz2
llvm-913457acf07be7f22d71ac41ad1076517d7f45c6.zip
[lldb] Use nullptr instead of 0 or NULL (NFC)
This is a re-submission of 24d240558811604354a8d6080405f6bad8d15b5c without the hunk in HostNativeThreadBase.h, which breaks builds on Windows. Identified with modernize-use-nullptr.
Diffstat (limited to 'lldb/source/Host/common/HostNativeThreadBase.cpp')
-rw-r--r--lldb/source/Host/common/HostNativeThreadBase.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Host/common/HostNativeThreadBase.cpp b/lldb/source/Host/common/HostNativeThreadBase.cpp
index b15160b143ca..e7966d9ebaa5 100644
--- a/lldb/source/Host/common/HostNativeThreadBase.cpp
+++ b/lldb/source/Host/common/HostNativeThreadBase.cpp
@@ -18,7 +18,7 @@ using namespace lldb;
using namespace lldb_private;
HostNativeThreadBase::HostNativeThreadBase(thread_t thread)
- : m_thread(thread), m_result(0) {}
+ : m_thread(thread), m_result(nullptr) {}
lldb::thread_t HostNativeThreadBase::GetSystemHandle() const {
return m_thread;
@@ -34,7 +34,7 @@ bool HostNativeThreadBase::IsJoinable() const {
void HostNativeThreadBase::Reset() {
m_thread = LLDB_INVALID_HOST_THREAD;
- m_result = 0;
+ m_result = nullptr;
}
bool HostNativeThreadBase::EqualsThread(lldb::thread_t thread) const {
@@ -44,7 +44,7 @@ bool HostNativeThreadBase::EqualsThread(lldb::thread_t thread) const {
lldb::thread_t HostNativeThreadBase::Release() {
lldb::thread_t result = m_thread;
m_thread = LLDB_INVALID_HOST_THREAD;
- m_result = 0;
+ m_result = nullptr;
return result;
}