aboutsummaryrefslogtreecommitdiff
path: root/src/base.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2020-02-06 11:25:42 +0000
committerGravatar Sadie Powell2020-02-06 11:25:42 +0000
commit98e4ddfb21d285c8b675788c155bb204822fbd4a (patch)
tree030eb18c989bf3c9e4768a538796e3221ca7934e /src/base.cpp
parentIn C++11 [io]fstream has std::string constructors; use them. (diff)
Use C++11 inline initialisation for class members.
Diffstat (limited to 'src/base.cpp')
-rw-r--r--src/base.cpp2
1 files changed, 1 insertions, 1 deletions
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!");