diff options
| author | 2020-02-06 11:25:42 +0000 | |
|---|---|---|
| committer | 2020-02-06 11:25:42 +0000 | |
| commit | 98e4ddfb21d285c8b675788c155bb204822fbd4a (patch) | |
| tree | 030eb18c989bf3c9e4768a538796e3221ca7934e /src/base.cpp | |
| parent | In 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.cpp | 2 |
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!"); |
