Skip to content

Commit

Permalink
COMP: Remove cases with ; to override cases
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-sandor committed May 30, 2024
1 parent e0e0ba8 commit 72228e2
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 13 deletions.
4 changes: 2 additions & 2 deletions Modules/Core/Common/include/itkQuadrilateralCell.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ class ITK_TEMPLATE_EXPORT QuadrilateralCell
// This was observed in at least gcc 4.8 and 5.4.0, and
// AppleClang 7.0.2 and 8.0.0. Probably others too.
// "= default" doesn't gain us much, so just don't use it here.
~QuadrilateralCell() override{};
~QuadrilateralCell() override {}
#else
~QuadrilateralCell() override = default;
~QuadrilateralCell() override = default
#endif

protected:
Expand Down
4 changes: 2 additions & 2 deletions Modules/Core/Common/include/itkTriangleCell.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,9 @@ class ITK_TEMPLATE_EXPORT TriangleCell
// This was observed in at least gcc 4.8 and 5.4.0, and
// AppleClang 7.0.2 and 8.0.0. Probably others too.
// "= default" doesn't gain us much, so just don't use it here.
~TriangleCell() override{};
~TriangleCell() override {}
#else
~TriangleCell() override = default;
~TriangleCell() override = default
#endif

protected:
Expand Down
9 changes: 6 additions & 3 deletions Modules/Core/Transform/include/itkBSplineTransform.h
Original file line number Diff line number Diff line change
Expand Up @@ -302,14 +302,17 @@ class ITK_TEMPLATE_EXPORT BSplineTransform : public BSplineBaseTransform<TParame

/** Methods have empty implementations */
void
SetFixedParametersGridSizeFromTransformDomainInformation() const override{};
SetFixedParametersGridSizeFromTransformDomainInformation() const override
{}
void
SetFixedParametersGridOriginFromTransformDomainInformation() const override{};
SetFixedParametersGridOriginFromTransformDomainInformation() const override
{}
void
SetFixedParametersGridSpacingFromTransformDomainInformation() const override
{}
void
SetFixedParametersGridDirectionFromTransformDomainInformation() const override{};
SetFixedParametersGridDirectionFromTransformDomainInformation() const override
{}

/** Check if a continuous index is inside the valid region. */
bool
Expand Down
4 changes: 2 additions & 2 deletions Modules/Core/Transform/include/itkTransform.h
Original file line number Diff line number Diff line change
Expand Up @@ -595,9 +595,9 @@ class ITK_TEMPLATE_EXPORT Transform : public TransformBaseTemplate<TParametersVa
// This was observed in at least gcc 4.8 and 5.4.0, and
// AppleClang 7.0.2 and 8.0.0. Probably others too.
// "= default" doesn't gain us much, so just don't use it here.
~Transform() override{};
~Transform() override {}
#else
~Transform() override = default;
~Transform() override = default
#endif
mutable ParametersType m_Parameters{};
mutable FixedParametersType m_FixedParameters{};
Expand Down
4 changes: 2 additions & 2 deletions Modules/Core/Transform/include/itkTransformBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ class TransformBaseTemplate : public Object
// This was observed in at least gcc 4.8 and 5.4.0, and
// AppleClang 7.0.2 and 8.0.0. Probably others too.
// "= default" doesn't gain us much, so just don't use it here.
TransformBaseTemplate(){};
~TransformBaseTemplate() override{};
TransformBaseTemplate() {}
~TransformBaseTemplate() override {}
#else
TransformBaseTemplate() = default;
~TransformBaseTemplate() override = default;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ class ITK_TEMPLATE_EXPORT ConvolutionImageFilterBase : public ImageToImageFilter
/** Default superclass implementation ensures that input images
* occupy same physical space. This is not needed for this filter. */
void
VerifyInputInformation() ITKv5_CONST override{};
VerifyInputInformation() ITKv5_CONST override
{}

private:
bool m_Normalize{ false };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ class TransformParametersAdaptor

/** Initialize the transform using the specified fixed parameters */
void
AdaptTransformParameters() override{};
AdaptTransformParameters() override
{}

protected:
TransformParametersAdaptor() = default;
Expand Down

0 comments on commit 72228e2

Please sign in to comment.