From 648f813f8c89e6e7d0ed5bda2c2149bee2babb09 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 22 Jul 2022 18:33:38 +0100 Subject: Switch from NULL to nullptr. --- src/base.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/base.cpp') 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); } -- cgit v1.3.1-10-gc9f91