mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 16:32:12 -05:00
Reintroduced asserts
This commit is contained in:
1 parent
767defd90f
commit
28aee8ef0d
1 file changed
+2
-4
@@ -42,8 +42,7 @@ void PdmObjectHandle::fields(std::vector<PdmFieldHandle*>& fields) const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void PdmObjectHandle::setAsParentField(PdmFieldHandle* parentField)
|
||||
{
|
||||
// MODTODO This asserts must be reintroduced when ptrfield is implemented
|
||||
// assert(m_parentField == NULL);
|
||||
assert(m_parentField == NULL);
|
||||
|
||||
m_parentField = parentField;
|
||||
}
|
||||
@@ -53,8 +52,7 @@ void PdmObjectHandle::setAsParentField(PdmFieldHandle* parentField)
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void PdmObjectHandle::removeAsParentField(PdmFieldHandle* parentField)
|
||||
{
|
||||
// MODTODO This asserts must be reintroduced when ptrfield is implemented
|
||||
// assert(m_parentField == parentField);
|
||||
assert(m_parentField == parentField);
|
||||
|
||||
m_parentField = NULL;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user