Skip to content

Commit a83235a

Browse files
committed
ENH: ITKv5_CONST macro for VerifyPreconditions() and VerifyInputInformation()
ITKv5_CONST enables backwards compatible behavior when ITKV4_COMPATIBILITY is turned ON for methods which have acquired 'const' qualifier in ITKv5. Breaking changes were originally introduced by ITK commits 3e6b6f5bd6772316aa0fa6b89f31b42bef562112 (on 2018-10-18) and 16eae15c1bb6cc1bae9fba3e09a3102bdc02e955 (on 2018-10-23).
1 parent a0718ac commit a83235a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/itkWaveletFrequencyInverse.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ class WaveletFrequencyInverse : public ImageToImageFilter<TInputImage, TOutputIm
175175
/** Input images do not occupy the same physical space.
176176
* Remove the check. */
177177
void
178-
VerifyInputInformation() ITKv5_CONST override{};
178+
VerifyInputInformation() const override{};
179179

180180
private:
181181
unsigned int m_Levels{ 1 };

include/itkWaveletFrequencyInverseUndecimated.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ class WaveletFrequencyInverseUndecimated : public ImageToImageFilter<TInputImage
167167
/** Input images do not occupy the same physical space.
168168
* Remove the check. */
169169
void
170-
VerifyInputInformation() ITKv5_CONST override{};
170+
VerifyInputInformation() const override{};
171171

172172
private:
173173
unsigned int m_Levels{ 1 };

0 commit comments

Comments
 (0)