mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
firstAnchestorOrThisOfType : Initialize returnvalue to NULL
This commit is contained in:
parent
f5d15c19e1
commit
d3b1af3724
@ -103,6 +103,8 @@ namespace caf
|
||||
template <typename T>
|
||||
void PdmObjectHandle::firstAnchestorOrThisOfType(T*& ancestor) const
|
||||
{
|
||||
ancestor = NULL;
|
||||
|
||||
// Check if this matches the type
|
||||
|
||||
const T* objectOfType = dynamic_cast<const T*>(this);
|
||||
|
Loading…
Reference in New Issue
Block a user