Skip to content

Commit

Permalink
STYLE: Default default-constructors MultiTransform, CompositeTransform
Browse files Browse the repository at this point in the history
These default-constructors just simply either zero-initialized, cleared or
default-constructed all of their data members.

Follow-up to pull request #3878
commit c2c67ac
"STYLE: Default default-constructors of class templates in Core/Common"
  • Loading branch information
N-Dekker authored and hjmjohnson committed Mar 17, 2023
1 parent 2641143 commit 8fbbcd5
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 21 deletions.
2 changes: 1 addition & 1 deletion Modules/Core/Transform/include/itkCompositeTransform.h
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ class ITK_TEMPLATE_EXPORT CompositeTransform : public MultiTransform<TParameters
JacobianType & cacheJacobian) const override;

protected:
CompositeTransform();
CompositeTransform() = default;
~CompositeTransform() override = default;
void
PrintSelf(std::ostream & os, Indent indent) const override;
Expand Down
9 changes: 0 additions & 9 deletions Modules/Core/Transform/include/itkCompositeTransform.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,6 @@
namespace itk
{


template <typename TParametersValueType, unsigned int VDimension>
CompositeTransform<TParametersValueType, VDimension>::CompositeTransform()
{
this->m_TransformsToOptimizeFlags.clear();
this->m_TransformsToOptimizeQueue.clear();
this->m_PreviousTransformsToOptimizeUpdateTime = 0;
}

template <typename TParametersValueType, unsigned int VDimension>
auto
CompositeTransform<TParametersValueType, VDimension>::GetTransformCategory() const -> TransformCategoryEnum
Expand Down
2 changes: 1 addition & 1 deletion Modules/Core/Transform/include/itkMultiTransform.h
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ class ITK_TEMPLATE_EXPORT MultiTransform : public Transform<TParametersValueType
// virtual void FlattenTransformQueue();

protected:
MultiTransform();
MultiTransform() = default;
~MultiTransform() override = default;
void
PrintSelf(std::ostream & os, Indent indent) const override;
Expand Down
10 changes: 0 additions & 10 deletions Modules/Core/Transform/include/itkMultiTransform.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,6 @@
namespace itk
{


template <typename TParametersValueType, unsigned int VDimension, unsigned int VSubDimensions>
MultiTransform<TParametersValueType, VDimension, VSubDimensions>::MultiTransform()
: Superclass(0)
{
this->m_NumberOfLocalParameters = NumericTraits<NumberOfParametersType>::ZeroValue();
this->m_LocalParametersUpdateTime = NumericTraits<ModifiedTimeType>::ZeroValue();
this->m_TransformQueue.clear();
}

template <typename TParametersValueType, unsigned int VDimension, unsigned int VSubDimensions>
auto
MultiTransform<TParametersValueType, VDimension, VSubDimensions>::GetTransformCategory() const -> TransformCategoryEnum
Expand Down

0 comments on commit 8fbbcd5

Please sign in to comment.