From: tbaudier Date: Tue, 13 Nov 2018 08:21:54 +0000 (+0100) Subject: Allow compilation with ITK4.13.0 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=f05cc2cf37d7ec960b73fa9d2393d5a888e1f87a;p=clitk.git Allow compilation with ITK4.13.0 With initialisation of the smart pointer to NULL, it failed to compile (error of conversion from int to smart pointer). I removed the NULL --- diff --git a/tools/clitkRTStructStatisticsGenericFilter.txx b/tools/clitkRTStructStatisticsGenericFilter.txx index 9418ac5..d658e2b 100644 --- a/tools/clitkRTStructStatisticsGenericFilter.txx +++ b/tools/clitkRTStructStatisticsGenericFilter.txx @@ -70,7 +70,7 @@ void RTStructStatisticsGenericFilter::UpdateWithInputImageType() { // Read mask input typedef itk::Image MaskInputImageType; - typename MaskInputImageType::Pointer mask = NULL; + typename MaskInputImageType::Pointer mask; mask = this->template GetInput(0); //Create the Shape Label Map from the mask diff --git a/tools/clitkSUVPeakGenericFilter.txx b/tools/clitkSUVPeakGenericFilter.txx index 02ca48d..8a41726 100644 --- a/tools/clitkSUVPeakGenericFilter.txx +++ b/tools/clitkSUVPeakGenericFilter.txx @@ -72,7 +72,7 @@ void SUVPeakGenericFilter::UpdateWithInputImageType() //Read mask typedef itk::Image MaskImageType; - typename MaskImageType::Pointer mask = NULL; + typename MaskImageType::Pointer mask; if(mArgsInfo.mask_given) { mask = this->template GetInput(1); }