Skip to content

Commit

Permalink
STYLE: Default LabelMap default-constructor
Browse files Browse the repository at this point in the history
Its data members are already properly default-initialized by `{}`.
  • Loading branch information
N-Dekker committed Jan 18, 2024
1 parent f844df9 commit c3639c2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion Modules/Filtering/LabelMap/include/itkLabelMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ class ITK_TEMPLATE_EXPORT LabelMap : public ImageBase<TLabelObject::ImageDimensi
};

protected:
LabelMap();
LabelMap() = default;
~LabelMap() override = default;
void
PrintSelf(std::ostream & os, Indent indent) const override;
Expand Down
8 changes: 0 additions & 8 deletions Modules/Filtering/LabelMap/include/itkLabelMap.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,6 @@
namespace itk
{

template <typename TLabelObject>
LabelMap<TLabelObject>::LabelMap()
{
m_BackgroundValue = NumericTraits<LabelType>::ZeroValue();
this->Initialize();
}


template <typename TLabelObject>
void
LabelMap<TLabelObject>::PrintSelf(std::ostream & os, Indent indent) const
Expand Down

0 comments on commit c3639c2

Please sign in to comment.