diff options
| author | Brian Potchik <brian@vector35.com> | 2023-12-04 09:10:23 -0500 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2023-12-04 09:10:23 -0500 |
| commit | b7aaa0c45812c2efe9134d4df311031f1370cd35 (patch) | |
| tree | 5b1a0b961d1bb4b5b12d0a14a4c535ad72a974f5 /binaryninjaapi.h | |
| parent | c5e9fd57248de7758c4b507733075b8bbb7d2b0e (diff) | |
Replace NULL with nullptr for some default initialization.
Diffstat (limited to 'binaryninjaapi.h')
| -rw-r--r-- | binaryninjaapi.h | 4 |
1 files changed, 2 insertions, 2 deletions
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<T>() : m_obj(NULL) {} + Ref<T>() : m_obj(nullptr) {} Ref<T>(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); } |
