AppFwk : Removed assert guard, to prepare for delete of contained object

This commit is contained in:
Magne Sjaastad
2017-01-13 10:29:38 +01:00
parent ccb88c6520
commit 239322ba50

View File

@@ -52,9 +52,7 @@ caf::PdmChildField<DataType*>::PdmChildField(const DataTypePtr& fieldValue)
template<typename DataType >
caf::PdmChildField<DataType*>::~PdmChildField()
{
#ifdef _DEBUG
assert(m_fieldValue.isNull());
#endif
if (!m_fieldValue.isNull()) m_fieldValue.rawPtr()->removeAsParentField(this);
m_fieldValue.setRawPtr(NULL);