X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=itk%2FclitkCropLikeImageFilter.h;h=6e6360891c05112f5a9505a7970c82918dfa3cba;hb=7d4e77191e55f668f316ba3ddf0fddb63e59bd25;hp=cc7623f5741a49a2d4e0efc735e95ecd8a9311a5;hpb=c45f077f35553cdc72396626ac601080093d273b;p=clitk.git diff --git a/itk/clitkCropLikeImageFilter.h b/itk/clitkCropLikeImageFilter.h index cc7623f..6e63608 100644 --- a/itk/clitkCropLikeImageFilter.h +++ b/itk/clitkCropLikeImageFilter.h @@ -71,15 +71,19 @@ namespace clitk { itkStaticConstMacro(ImageDimension, unsigned int, ImageType::ImageDimension); // I dont want to verify inputs information - virtual void VerifyInputInformation() { } +#if ITK_VERSION_MAJOR <= 4 + virtual void VerifyInputInformation() ITK_OVERRIDE { } +#else + virtual void VerifyInputInformation() const ITK_OVERRIDE { } +#endif protected: CropLikeImageFilter(); virtual ~CropLikeImageFilter() {} - virtual void GenerateOutputInformation(); - virtual void GenerateData(); - virtual void GenerateInputRequestedRegion(); + virtual void GenerateOutputInformation() ITK_OVERRIDE; + virtual void GenerateData() ITK_OVERRIDE; + virtual void GenerateInputRequestedRegion() ITK_OVERRIDE; PixelType m_BackgroundValue; RegionType m_OutputRegion;