From f05cc2cf37d7ec960b73fa9d2393d5a888e1f87a Mon Sep 17 00:00:00 2001 From: tbaudier Date: Tue, 13 Nov 2018 09:21:54 +0100 Subject: [PATCH] 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 --- tools/clitkRTStructStatisticsGenericFilter.txx | 2 +- tools/clitkSUVPeakGenericFilter.txx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.47.1