From b7aaa0c45812c2efe9134d4df311031f1370cd35 Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Mon, 4 Dec 2023 09:10:23 -0500 Subject: Replace NULL with nullptr for some default initialization. --- binaryninjaapi.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 4ae42c6e..ff83f295 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -241,7 +241,7 @@ namespace BinaryNinja { #endif public: - Ref() : m_obj(NULL) {} + Ref() : m_obj(nullptr) {} Ref(T* obj) : m_obj(obj) { @@ -341,7 +341,7 @@ namespace BinaryNinja { T& operator*() const { return *m_obj; } - bool operator!() const { return m_obj == NULL; } + bool operator!() const { return m_obj == nullptr; } bool operator==(const T* obj) const { return T::GetObject(m_obj) == T::GetObject(obj); } -- cgit v1.3.1