]> Creatis software - clitk.git/commitdiff
With ITK 5.0, itk::ProcessObject::VerifyInputInformation are now declared const
authortbaudier <thomas.baudier@creatis.insa-lyon.fr>
Fri, 15 Feb 2019 14:00:38 +0000 (15:00 +0100)
committertbaudier <thomas.baudier@creatis.insa-lyon.fr>
Fri, 15 Feb 2019 14:00:38 +0000 (15:00 +0100)
itk/clitkAddRelativePositionConstraintToLabelImageFilter.h
itk/clitkBooleanOperatorLabelImageFilter.h
itk/clitkCropLikeImageFilter.h
itk/clitkLabelImageOverlapMeasureFilter.h
itk/clitkPasteImageFilter.h

index 45f331ed9d7cf5e55989a1852a54f9737bdccc90..df052838b2f7e12e139a77fccdd734b3a0f80a16 100644 (file)
@@ -149,7 +149,11 @@ namespace clitk {
     typename FloatImageType::Pointer GetFuzzyMap() { return m_FuzzyMap; }
 
     // I dont want to verify inputs information
+#if ITK_VERSION_MAJOR <= 4
     virtual void VerifyInputInformation() ITK_OVERRIDE { }
+#else
+    virtual void VerifyInputInformation() const ITK_OVERRIDE { }
+#endif
     
     // For debug
     void PrintOptions();
index e7d1b73113fb99918b1dd001308373f76a880b87..523a179f8087f713919883e28194f259b7f4a119 100644 (file)
@@ -99,8 +99,12 @@ namespace clitk {
     itkStaticConstMacro(OutputImageDimension, unsigned int, TOutputImage::ImageDimension);
 
     // I dont want to verify inputs information
+#if ITK_VERSION_MAJOR <= 4
     virtual void VerifyInputInformation() ITK_OVERRIDE { }
-    
+#else
+    virtual void VerifyInputInformation() const ITK_OVERRIDE { }
+#endif
+
   protected:
     BooleanOperatorLabelImageFilter();
     virtual ~BooleanOperatorLabelImageFilter() {}
index 47ae445a2b2312c53b6e8521b684110f0449e205..6e6360891c05112f5a9505a7970c82918dfa3cba 100644 (file)
@@ -71,7 +71,11 @@ namespace clitk {
     itkStaticConstMacro(ImageDimension, unsigned int, ImageType::ImageDimension);
 
     // I dont want to verify inputs information
+#if ITK_VERSION_MAJOR <= 4
     virtual void VerifyInputInformation() ITK_OVERRIDE { }
+#else
+    virtual void VerifyInputInformation() const ITK_OVERRIDE { }
+#endif
 
   protected:
     CropLikeImageFilter();
index cf0645f15afcde53a53e8b3fb70d2da847d2d27a..b2b79aca9c7478bbc86adc1112cde1679af07b5d 100644 (file)
@@ -93,7 +93,11 @@ namespace clitk {
     itkBooleanMacro(LongFlag);
 
     // 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:
     LabelImageOverlapMeasureFilter();
index 5f286b3dd30e0d0a5de23d3fe3af1db4f967d83a..3429ab6681222302a1b124d18ec41a647154ccce 100644 (file)
@@ -18,7 +18,11 @@ namespace clitk
     public itk::PasteImageFilter< TInputImage, TSourceImage, TOutputImage >
   {
   public:
+#if ITK_VERSION_MAJOR <= 4
     virtual void VerifyInputInformation() ITK_OVERRIDE { }
+#else
+    virtual void VerifyInputInformation() const ITK_OVERRIDE { }
+#endif
 
     /** Standard class typedefs. */
     typedef PasteImageFilter                                Self;