mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Linux fix
p4#: 21418
This commit is contained in:
parent
c0bfc9bbe1
commit
9c8c12955b
@ -258,10 +258,10 @@ void PdmObject::firstAncestorOfType(T*& ancestor) const
|
|||||||
|
|
||||||
while (parents.size() > 0)
|
while (parents.size() > 0)
|
||||||
{
|
{
|
||||||
CVF_ASSERT(parents.size() == 1);
|
assert(parents.size() == 1);
|
||||||
|
|
||||||
PdmObject* firstParent = parents[0];
|
PdmObject* firstParent = parents[0];
|
||||||
CVF_ASSERT(firstParent);
|
assert(firstParent);
|
||||||
|
|
||||||
T* objectOfType = dynamic_cast<T*>(firstParent);
|
T* objectOfType = dynamic_cast<T*>(firstParent);
|
||||||
if (objectOfType)
|
if (objectOfType)
|
||||||
|
Loading…
Reference in New Issue
Block a user