mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
AppFwk : Removed assert guard, to prepare for delete of contained object
This commit is contained in:
@@ -52,9 +52,7 @@ caf::PdmChildField<DataType*>::PdmChildField(const DataTypePtr& fieldValue)
|
|||||||
template<typename DataType >
|
template<typename DataType >
|
||||||
caf::PdmChildField<DataType*>::~PdmChildField()
|
caf::PdmChildField<DataType*>::~PdmChildField()
|
||||||
{
|
{
|
||||||
#ifdef _DEBUG
|
|
||||||
assert(m_fieldValue.isNull());
|
assert(m_fieldValue.isNull());
|
||||||
#endif
|
|
||||||
|
|
||||||
if (!m_fieldValue.isNull()) m_fieldValue.rawPtr()->removeAsParentField(this);
|
if (!m_fieldValue.isNull()) m_fieldValue.rawPtr()->removeAsParentField(this);
|
||||||
m_fieldValue.setRawPtr(NULL);
|
m_fieldValue.setRawPtr(NULL);
|
||||||
|
|||||||
Reference in New Issue
Block a user