Skip to content

Commit b91741f

Browse files
committed
STYLE: Use trailing return type instead of typename + dependent type
1 parent b7ab26a commit b91741f

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

include/itkPhaseCorrelationImageRegistrationMethod.hxx

+2-1
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,9 @@ PhaseCorrelationImageRegistrationMethod<TFixedImage, TMovingImage, TInternalPixe
207207

208208

209209
template <typename TFixedImage, typename TMovingImage, typename TInternalPixelType>
210-
typename PhaseCorrelationImageRegistrationMethod<TFixedImage, TMovingImage, TInternalPixelType>::SizeType
210+
auto
211211
PhaseCorrelationImageRegistrationMethod<TFixedImage, TMovingImage, TInternalPixelType>::RoundUpToFFTSize(SizeType size)
212+
-> SizeType
212213
{
213214
// FFTs are faster when image size can be factorized using smaller prime numbers
214215
const auto sizeGreatestPrimeFactor = std::min<SizeValueType>(5, m_FixedFFT->GetSizeGreatestPrimeFactor());

include/itkTileMontage.hxx

+4-3
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@ TileMontage<TImageType, TCoordinate>::GetImageHelper(TileIndexType nDIndex, bool
176176
}
177177

178178
template <typename TImageType, typename TCoordinate>
179-
typename TileMontage<TImageType, TCoordinate>::ImageType::Pointer
180-
TileMontage<TImageType, TCoordinate>::GetImage(TileIndexType nDIndex, bool metadataOnly)
179+
auto
180+
TileMontage<TImageType, TCoordinate>::GetImage(TileIndexType nDIndex, bool metadataOnly) -> typename ImageType::Pointer
181181
{
182182
RegionType reg0; // default-initialized to zeroes
183183
SizeValueType linearIndex = this->nDIndexToLinearIndex(nDIndex);
@@ -213,8 +213,9 @@ TileMontage<TImageType, TCoordinate>::nDIndexToLinearIndex(TileIndexType nDIndex
213213
}
214214

215215
template <typename TImageType, typename TCoordinate>
216-
typename TileMontage<TImageType, TCoordinate>::TileIndexType
216+
auto
217217
TileMontage<TImageType, TCoordinate>::LinearIndexTonDIndex(DataObject::DataObjectPointerArraySizeType linearIndex) const
218+
-> TileIndexType
218219
{
219220
TileIndexType ind;
220221
SizeValueType stride = 1u;

0 commit comments

Comments
 (0)