mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
resolved constexpr constructor not mem-initializing member variables
This commit is contained in:
parent
4fc85ba717
commit
8d1e95b3f3
1 changed files with 2 additions and 2 deletions
|
|
@ -54,7 +54,7 @@ public:
|
||||||
private:
|
private:
|
||||||
|
|
||||||
friend class WeakRefBase;
|
friend class WeakRefBase;
|
||||||
constexpr explicit WeakReference(WeakRefBase *object) { mObject = object; mRefCount = 0; }
|
constexpr explicit WeakReference(WeakRefBase *object) :mObject(object), mRefCount(0) {}
|
||||||
~WeakReference() { AssertFatal(mObject==nullptr, "Deleting weak reference which still points at an object."); }
|
~WeakReference() { AssertFatal(mObject==nullptr, "Deleting weak reference which still points at an object."); }
|
||||||
|
|
||||||
// Object we reference
|
// Object we reference
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue