Util/Manual: use Get() in Destruct()
This commit is contained in:
parent
14f9cdde6b
commit
1889150013
@ -84,8 +84,8 @@ public:
|
|||||||
void Destruct() {
|
void Destruct() {
|
||||||
assert(initialized);
|
assert(initialized);
|
||||||
|
|
||||||
T *t = (T *)data;
|
T &t = Get();
|
||||||
t->T::~T();
|
t.T::~T();
|
||||||
|
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
initialized = false;
|
initialized = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user