Skip to content

Commit

Permalink
STYLE: Use trailing return type instead of typename + dependent type
Browse files Browse the repository at this point in the history
  • Loading branch information
dzenanz committed Apr 28, 2023
1 parent b7ab26a commit b91741f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion include/itkPhaseCorrelationImageRegistrationMethod.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,9 @@ PhaseCorrelationImageRegistrationMethod<TFixedImage, TMovingImage, TInternalPixe


template <typename TFixedImage, typename TMovingImage, typename TInternalPixelType>
typename PhaseCorrelationImageRegistrationMethod<TFixedImage, TMovingImage, TInternalPixelType>::SizeType
auto
PhaseCorrelationImageRegistrationMethod<TFixedImage, TMovingImage, TInternalPixelType>::RoundUpToFFTSize(SizeType size)
-> SizeType
{
// FFTs are faster when image size can be factorized using smaller prime numbers
const auto sizeGreatestPrimeFactor = std::min<SizeValueType>(5, m_FixedFFT->GetSizeGreatestPrimeFactor());
Expand Down
7 changes: 4 additions & 3 deletions include/itkTileMontage.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ TileMontage<TImageType, TCoordinate>::GetImageHelper(TileIndexType nDIndex, bool
}

template <typename TImageType, typename TCoordinate>
typename TileMontage<TImageType, TCoordinate>::ImageType::Pointer
TileMontage<TImageType, TCoordinate>::GetImage(TileIndexType nDIndex, bool metadataOnly)
auto
TileMontage<TImageType, TCoordinate>::GetImage(TileIndexType nDIndex, bool metadataOnly) -> typename ImageType::Pointer
{
RegionType reg0; // default-initialized to zeroes
SizeValueType linearIndex = this->nDIndexToLinearIndex(nDIndex);
Expand Down Expand Up @@ -213,8 +213,9 @@ TileMontage<TImageType, TCoordinate>::nDIndexToLinearIndex(TileIndexType nDIndex
}

template <typename TImageType, typename TCoordinate>
typename TileMontage<TImageType, TCoordinate>::TileIndexType
auto
TileMontage<TImageType, TCoordinate>::LinearIndexTonDIndex(DataObject::DataObjectPointerArraySizeType linearIndex) const
-> TileIndexType
{
TileIndexType ind;
SizeValueType stride = 1u;
Expand Down

0 comments on commit b91741f

Please sign in to comment.