diff options
| author | 2022-07-22 18:33:38 +0100 | |
|---|---|---|
| committer | 2022-07-22 18:53:21 +0100 | |
| commit | 648f813f8c89e6e7d0ed5bda2c2149bee2babb09 (patch) | |
| tree | 5357669e57bb381c80bfdbd24ed4057a99db8e5b /src/base.cpp | |
| parent | Update author list. (diff) | |
Switch from NULL to nullptr.
Diffstat (limited to 'src/base.cpp')
| -rw-r--r-- | src/base.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/base.cpp b/src/base.cpp index 1c1d34364..21b260fe4 100644 --- a/src/base.cpp +++ b/src/base.cpp @@ -27,7 +27,7 @@ #include "base.h" // This trick detects heap allocations of refcountbase objects -static void* last_heap = NULL; +static void* last_heap = nullptr; void* refcountbase::operator new(size_t size) { @@ -38,7 +38,7 @@ void* refcountbase::operator new(size_t size) void refcountbase::operator delete(void* obj) { if (last_heap == obj) - last_heap = NULL; + last_heap = nullptr; ::operator delete(obj); } |
