Skip to content

Commit

Permalink
STYLE: PointSet, LevelSetBase call Superclass::UpdateOutputInformation()
Browse files Browse the repository at this point in the history
Let the `UpdateOutputInformation()` overrides of `PointSet` and `LevelSetBase`
start by calling the overridden member function of their `Superclass`.
  • Loading branch information
N-Dekker authored and hjmjohnson committed Sep 10, 2022
1 parent 5eb451f commit 35ab868
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions Modules/Core/Common/include/itkPointSet.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -277,10 +277,7 @@ template <typename TPixelType, unsigned int VDimension, typename TMeshTraits>
void
PointSet<TPixelType, VDimension, TMeshTraits>::UpdateOutputInformation()
{
if (this->GetSource())
{
this->GetSource()->UpdateOutputInformation();
}
this->Superclass::UpdateOutputInformation();

// Now we should know what our largest possible region is. If our
// requested region was not set yet, (or has been set to something
Expand Down
5 changes: 1 addition & 4 deletions Modules/Segmentation/LevelSetsv4/include/itkLevelSetBase.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,7 @@ template <typename TInput, unsigned int VDimension, typename TOutput, typename T
void
LevelSetBase<TInput, VDimension, TOutput, TDomain>::UpdateOutputInformation()
{
if (this->GetSource())
{
this->GetSource()->UpdateOutputInformation();
}
this->Superclass::UpdateOutputInformation();

// Now we should know what our largest possible region is. If our
// requested region was not set yet, (or has been set to something
Expand Down

0 comments on commit 35ab868

Please sign in to comment.