Skip to content

Commit 4894974

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 d13acf7 commit 4894974

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

include/itkDICOMOrientImageFilter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ class ITK_TEMPLATE_EXPORT DICOMOrientImageFilter : public ImageToImageFilter<TIn
168168
SetInputCoordinateOrientation(OrientationEnum newCode);
169169

170170
void
171-
VerifyPreconditions() ITKv5_CONST override;
171+
VerifyPreconditions() const override;
172172

173173
/** Single-threaded version of GenerateData. This filter delegates
174174
* to PermuteAxesImageFilter and FlipImageFilter. */

include/itkDICOMOrientImageFilter.hxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ DICOMOrientImageFilter<TInputImage>::GenerateOutputInformation()
295295

296296
template <typename TInputImage>
297297
void
298-
DICOMOrientImageFilter<TInputImage>::VerifyPreconditions() ITKv5_CONST
298+
DICOMOrientImageFilter<TInputImage>::VerifyPreconditions() const
299299
{
300300
Superclass::VerifyPreconditions();
301301

include/itkNPasteImageFilter.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,11 @@ class ITK_TEMPLATE_EXPORT NPasteImageFilter : public InPlaceImageFilter<TInputIm
170170
* \sa ProcessObject::VerifyInputInformation
171171
*/
172172
void
173-
VerifyInputInformation() ITKv5_CONST override
173+
VerifyInputInformation() const override
174174
{}
175175

176176
void
177-
VerifyPreconditions() ITKv5_CONST override;
177+
VerifyPreconditions() const override;
178178

179179
bool
180180
CanRunInPlace() const override;

include/itkNPasteImageFilter.hxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ NPasteImageFilter<TInputImage, TSourceImage, TOutputImage>::GenerateInputRequest
7979

8080
template <typename TInputImage, typename TSourceImage, typename TOutputImage>
8181
void
82-
NPasteImageFilter<TInputImage, TSourceImage, TOutputImage>::VerifyPreconditions() ITKv5_CONST
82+
NPasteImageFilter<TInputImage, TSourceImage, TOutputImage>::VerifyPreconditions() const
8383
{
8484
Superclass::VerifyPreconditions();
8585

0 commit comments

Comments
 (0)