From: Simon Rit Date: Tue, 2 Sep 2014 06:36:45 +0000 (+0200) Subject: Fix missing breaks + handle default in enum X-Git-Tag: v1.4.0~112 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=aac2f41404cbbf31c8b281acc13149af97da1105;p=clitk.git Fix missing breaks + handle default in enum --- diff --git a/tools/clitkAnisotropicDiffusionGenericFilter.cxx b/tools/clitkAnisotropicDiffusionGenericFilter.cxx index e020d54..408fe7f 100644 --- a/tools/clitkAnisotropicDiffusionGenericFilter.cxx +++ b/tools/clitkAnisotropicDiffusionGenericFilter.cxx @@ -90,6 +90,7 @@ AnisotropicDiffusionGenericFilter::UpdateWithInputImageType() gadFilter->SetConductanceParameter(mArgsInfo.conductance_arg); gadFilter->Update(); this->template SetNextOutput(gadFilter->GetOutput()); + break; case type_arg_Curvature: cadFilter->SetInput(input); cadFilter->SetNumberOfIterations(mArgsInfo.niterations_arg); @@ -97,6 +98,10 @@ AnisotropicDiffusionGenericFilter::UpdateWithInputImageType() cadFilter->SetConductanceParameter(mArgsInfo.conductance_arg); cadFilter->Update(); this->template SetNextOutput(cadFilter->GetOutput()); + break; + default: + itkGenericExceptionMacro("Unhandled type"); + break; } } //--------------------------------------------------------------------