From 98e4ddfb21d285c8b675788c155bb204822fbd4a Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 6 Feb 2020 11:25:42 +0000 Subject: Use C++11 inline initialisation for class members. --- src/base.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/base.cpp') diff --git a/src/base.cpp b/src/base.cpp index 7f3177c20..c7765f1f5 100644 --- a/src/base.cpp +++ b/src/base.cpp @@ -75,7 +75,7 @@ void refcountbase::operator delete(void* obj) ::operator delete(obj); } -refcountbase::refcountbase() : refcount(0) +refcountbase::refcountbase() { if (this != last_heap) throw CoreException("Reference allocate on the stack!"); -- cgit v1.3.1-10-gc9f91