mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3340 Do not use same variable name twice
This commit is contained in:
@@ -130,10 +130,10 @@ void PdmObjectHandle::firstAncestorOrThisOfType(T*& ancestor) const
|
||||
|
||||
// Check if this matches the type
|
||||
|
||||
const T* objectOfType = dynamic_cast<const T*>(this);
|
||||
if (objectOfType)
|
||||
const T* objectOfTypeConst = dynamic_cast<const T*>(this);
|
||||
if (objectOfTypeConst)
|
||||
{
|
||||
ancestor = const_cast<T*>(objectOfType);
|
||||
ancestor = const_cast<T*>(objectOfTypeConst);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user