]> Creatis software - clitk.git/commitdiff
Allow compilation with ITK4.13.0
authortbaudier <thomas.baudier@creatis.insa-lyon.fr>
Tue, 13 Nov 2018 08:21:54 +0000 (09:21 +0100)
committertbaudier <thomas.baudier@creatis.insa-lyon.fr>
Tue, 13 Nov 2018 08:21:54 +0000 (09:21 +0100)
With initialisation of the smart pointer to NULL, it failed to compile (error of conversion from int to smart pointer). I removed the NULL

tools/clitkRTStructStatisticsGenericFilter.txx
tools/clitkSUVPeakGenericFilter.txx

index 9418ac529e0274c9a78e022a5ada44fb755e608a..d658e2b7f965c49b7e307f2665db55c347793d3f 100644 (file)
@@ -70,7 +70,7 @@ void RTStructStatisticsGenericFilter<args_info_type>::UpdateWithInputImageType()
 {
   // Read mask input
   typedef itk::Image<unsigned char, ImageType::ImageDimension> MaskInputImageType;
-  typename MaskInputImageType::Pointer mask = NULL;
+  typename MaskInputImageType::Pointer mask;
   mask = this->template GetInput<MaskInputImageType>(0);
 
   //Create the Shape Label Map from the mask
index 02ca48d5cd66b3d8b35e75ef332b6a07759fd62f..8a41726c87ee40d990c6af82065950744a041744 100644 (file)
@@ -72,7 +72,7 @@ void SUVPeakGenericFilter<args_info_type>::UpdateWithInputImageType()
 
   //Read mask
   typedef itk::Image<unsigned char, ImageType::ImageDimension> MaskImageType;
-  typename MaskImageType::Pointer mask = NULL;
+  typename MaskImageType::Pointer mask;
   if(mArgsInfo.mask_given) {
       mask = this->template GetInput<MaskImageType>(1);
   }