Skip to content
Snippets Groups Projects
Commit 786e188a authored by Emmanuel Christophe's avatar Emmanuel Christophe
Browse files

BUG: simplify constructor

parent 3b4e51be
No related branches found
No related tags found
No related merge requests found
......@@ -30,13 +30,7 @@ template <class TInputPointSet, class TOutputPointSet>
PointSetToPointSetFilter<TInputPointSet,TOutputPointSet>
::PointSetToPointSetFilter()
{
this->ProcessObjectType::SetNumberOfRequiredInputs(1);
OutputPointSetPointer output
= dynamic_cast<OutputPointSetType*>(this->MakeOutput(0).GetPointer());
ProcessObjectType::SetNumberOfRequiredOutputs(1);
ProcessObjectType::SetNthOutput(0, output.GetPointer());
this->SetNumberOfRequiredInputs(1);
}
......
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