mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
resolved constexpr constructor not mem-initializing member variables
This commit is contained in:
parent
4fc85ba717
commit
8d1e95b3f3
|
|
@ -54,7 +54,7 @@ public:
|
|||
private:
|
||||
|
||||
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."); }
|
||||
|
||||
// Object we reference
|
||||
|
|
@ -469,4 +469,4 @@ inline T& Deref( StrongWeakRefPtr< T >& ref )
|
|||
return *ref;
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue