Skip to content

Commit

Permalink
COMP: Remove ; to function cases
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-sandor committed May 30, 2024
1 parent 405ae35 commit e0e0ba8
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 17 deletions.
3 changes: 2 additions & 1 deletion Modules/Core/Common/include/itkGaussianKernelFunction.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ class ITK_TEMPLATE_EXPORT GaussianKernelFunction : public KernelFunctionBase<TRe

protected:
GaussianKernelFunction()
: m_Factor(TRealValueType{ 1.0 } / std::sqrt(TRealValueType{ 2.0 * itk::Math::pi })){};
: m_Factor(TRealValueType{ 1.0 } / std::sqrt(TRealValueType{ 2.0 * itk::Math::pi }))
{}
~GaussianKernelFunction() override = default;
void
PrintSelf(std::ostream & os, Indent indent) const override
Expand Down
14 changes: 10 additions & 4 deletions Modules/Core/Common/include/itkProcessObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -495,9 +495,15 @@ class ITKCommon_EXPORT ProcessObject : public Object
itkGetConstReferenceMacro(NumberOfWorkUnits, ThreadIdType);

#if !defined(ITK_LEGACY_REMOVE) || defined(ITKV4_COMPATIBILITY)
itkLegacyMacro(void SetNumberOfThreads(ThreadIdType count)) { this->SetNumberOfWorkUnits(count); }
itkLegacyMacro(void SetNumberOfThreads(ThreadIdType count))
{
this->SetNumberOfWorkUnits(count);
}

itkLegacyMacro(ThreadIdType GetNumberOfThreads() const) { return this->GetNumberOfWorkUnits(); }
itkLegacyMacro(ThreadIdType GetNumberOfThreads() const)
{
return this->GetNumberOfWorkUnits();
}
#endif // !ITK_LEGACY_REMOVE

/** Return the multithreader used by this class. */
Expand Down Expand Up @@ -905,7 +911,7 @@ class ITKCommon_EXPORT ProcessObject : public Object
progressFixedToFloat(uint32_t fixed)
{
return static_cast<double>(fixed) / static_cast<double>(std::numeric_limits<uint32_t>::max());
};
}

/**
* Internal method convert floating point progress [0.0, 1.0] to internal integer representation. Values outside the
Expand All @@ -924,7 +930,7 @@ class ITKCommon_EXPORT ProcessObject : public Object
}
double temp = static_cast<double>(f) * std::numeric_limits<uint32_t>::max();
return static_cast<uint32_t>(temp);
};
}

/** These ivars are made protected so filters like itkStreamingImageFilter
* can access them directly. */
Expand Down
4 changes: 2 additions & 2 deletions Modules/Core/Common/include/itkVectorContainer.h
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ class ITK_TEMPLATE_EXPORT VectorContainer
m_Pos += n;
m_Iter += n;
return *this;
};
}

/** Get the index into the VectorContainer associated with this iterator.
*/
Expand Down Expand Up @@ -335,7 +335,7 @@ class ITK_TEMPLATE_EXPORT VectorContainer
m_Pos += n;
m_Iter += n;
return *this;
};
}

difference_type
operator-(const ConstIterator & r) const
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ class ITK_TEMPLATE_EXPORT VelocityFieldTransform : public DisplacementFieldTrans

/** Trigger the computation of the displacement field by integrating the velocity field. */
virtual void
IntegrateVelocityField(){};
IntegrateVelocityField()
{}

/**
* Set the lower time bound defining the integration domain of the transform.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ class NullImageToImageFilterDriver
{
public:
NullImageToImageFilterDriver()
: m_Filter(nullptr){};
: m_Filter(nullptr)
{}

using ImageSizeType = typename TInputImage::SizeType;
using InputPixelType = typename TInputImage::PixelType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ class ITK_TEMPLATE_EXPORT FrequencyFFTLayoutImageRegionConstIteratorWithIndex
SetActualXDimensionIsOdd(bool value)
{
this->m_ActualXDimensionIsOdd = value;
};
}
itkGetMacro(ActualXDimensionIsOdd, bool);
itkBooleanMacro(ActualXDimensionIsOdd)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ class ITK_TEMPLATE_EXPORT FrequencyShiftedFFTLayoutImageRegionConstIteratorWithI
SetActualXDimensionIsOdd(bool value)
{
this->m_ActualXDimensionIsOdd = value;
};
}
itkGetMacro(ActualXDimensionIsOdd, bool);
itkBooleanMacro(ActualXDimensionIsOdd)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ class ITK_TEMPLATE_EXPORT DivideOrZeroOut
{
m_Threshold = 1e-5 * NumericTraits<TDenominator>::OneValue();
m_Constant = TOutput{};
};
}

~DivideOrZeroOut() = default;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -418,13 +418,13 @@ class ITK_TEMPLATE_EXPORT PointSetToPointSetMetricWithIndexv4
RequiresMovingPointsLocator() const
{
return true;
};
}

virtual bool
RequiresFixedPointsLocator() const
{
return true;
};
}

/**
* Function to be defined in the appropriate derived classes. Calculates
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,15 +210,15 @@ class ITK_TEMPLATE_EXPORT PointSetToPointSetMetricv4
const PixelType & pixel) const override
{
return this->GetLocalNeighborhoodValue(point, pixel);
};
}

LocalDerivativeType
GetLocalNeighborhoodDerivativeWithIndex(const PointIdentifier &,
const PointType & point,
const PixelType & pixel) const override
{
return this->GetLocalNeighborhoodDerivative(point, pixel);
};
}

void
GetLocalNeighborhoodValueAndDerivativeWithIndex(const PointIdentifier &,
Expand All @@ -228,7 +228,7 @@ class ITK_TEMPLATE_EXPORT PointSetToPointSetMetricv4
const PixelType & pixel) const override
{
this->GetLocalNeighborhoodValueAndDerivative(point, measure, derivative, pixel);
};
}
};
} // end namespace itk

Expand Down

0 comments on commit e0e0ba8

Please sign in to comment.