Skip to content

Commit

Permalink
Merge pull request #158 from aylward/ITKv5_CONST_GONE
Browse files Browse the repository at this point in the history
ENH: Replace ITKv5_CONST with const for ITKv6 compatibility
  • Loading branch information
aylward authored Jun 21, 2024
2 parents ecf5fed + 67c5f0b commit 42104e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Filtering/itktubeShrinkWithBlendingImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,10 @@ class ITK_EXPORT ShrinkWithBlendingImageFilter :

void UpdateInternalShrinkFactors();

void VerifyInputInformation() ITKv5_CONST override;
void VerifyInputInformation() const override;

template<class ArrayType>
bool NotValue( ArrayType array, double val, double tolerance=0.00001 ) ITKv5_CONST;
bool NotValue( ArrayType array, double val, double tolerance=0.00001 ) const;

private:
ShrinkWithBlendingImageFilter( const Self & ); //purposely not implemented
Expand Down
4 changes: 2 additions & 2 deletions src/Filtering/itktubeShrinkWithBlendingImageFilter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ template< class TInputImage, class TOutputImage >
template <typename ArrayType>
bool
ShrinkWithBlendingImageFilter< TInputImage, TOutputImage >
::NotValue( ArrayType array, double val, double tolerance ) ITKv5_CONST
::NotValue( ArrayType array, double val, double tolerance ) const
{
for( unsigned int i = 0; i < ImageDimension; i++ )
{
Expand All @@ -382,7 +382,7 @@ ShrinkWithBlendingImageFilter< TInputImage, TOutputImage >
template< class TInputImage, class TOutputImage >
void
ShrinkWithBlendingImageFilter< TInputImage, TOutputImage >
::VerifyInputInformation() ITKv5_CONST
::VerifyInputInformation() const
{
bool useNewSize;
bool useShrinkFactors;
Expand Down

0 comments on commit 42104e6

Please sign in to comment.