Skip to content
Snippets Groups Projects
Commit c115e2f4 authored by Antoine Regimbeau's avatar Antoine Regimbeau
Browse files

REFAC: get rid of unnecessary cast

parent 25e3ad96
No related branches found
No related tags found
1 merge request!22Register Pipeline Services (ProcessObjects and DataObjects)
...@@ -168,8 +168,7 @@ typename ObjectList<TObject>::Superclass * ...@@ -168,8 +168,7 @@ typename ObjectList<TObject>::Superclass *
ObjectList<TObject> ObjectList<TObject>
::GetNthDataObject(unsigned int index) const ::GetNthDataObject(unsigned int index) const
{ {
ObjectType * object = GetNthElement(index).GetPointer(); return GetNthElement(index).GetPointer();
return dynamic_cast< Superclass * > ( object );
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment