Skip to content

Commit

Permalink
STYLE: Use TImage for CTAD supporting constructors ImageScanlineIterator
Browse files Browse the repository at this point in the history
Replaced `ImageType` with `TImage` as argument type of constructors of
`ImageScanlineIterator` and `ImageScanlineConstIterator`, in order to support
C++17 class template argument deduction (CTAD).
  • Loading branch information
N-Dekker authored and dzenanz committed Apr 19, 2023
1 parent b7bfef3 commit 1b14a34
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Expand Up @@ -102,7 +102,7 @@ class ITK_TEMPLATE_EXPORT ImageScanlineConstIterator : public ImageConstIterator

/** Constructor establishes an iterator to walk a particular image and a
* particular region of that image. */
ImageScanlineConstIterator(const ImageType * ptr, const RegionType & region)
ImageScanlineConstIterator(const TImage * ptr, const RegionType & region)
: ImageConstIterator<TImage>(ptr, region)
{
m_SpanBeginOffset = this->m_BeginOffset;
Expand Down
2 changes: 1 addition & 1 deletion Modules/Core/Common/include/itkImageScanlineIterator.h
Expand Up @@ -63,7 +63,7 @@ class ITK_TEMPLATE_EXPORT ImageScanlineIterator : public ImageScanlineConstItera

/** Constructor establishes an iterator to walk a particular image and a
* particular region of that image. */
ImageScanlineIterator(ImageType * ptr, const RegionType & region);
ImageScanlineIterator(TImage * ptr, const RegionType & region);

/** Constructor that can be used to cast from an ImageIterator to an
* ImageScanlineIterator. Many routines return an ImageIterator but for a
Expand Down
2 changes: 1 addition & 1 deletion Modules/Core/Common/include/itkImageScanlineIterator.hxx
Expand Up @@ -22,7 +22,7 @@
namespace itk
{
template <typename TImage>
ImageScanlineIterator<TImage>::ImageScanlineIterator(ImageType * ptr, const RegionType & region)
ImageScanlineIterator<TImage>::ImageScanlineIterator(TImage * ptr, const RegionType & region)
: ImageScanlineConstIterator<TImage>(ptr, region)
{}

Expand Down

0 comments on commit 1b14a34

Please sign in to comment.