From aac2f41404cbbf31c8b281acc13149af97da1105 Mon Sep 17 00:00:00 2001 From: Simon Rit Date: Tue, 2 Sep 2014 08:36:45 +0200 Subject: [PATCH] Fix missing breaks + handle default in enum --- tools/clitkAnisotropicDiffusionGenericFilter.cxx | 5 +++++ 1 file changed, 5 insertions(+) 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; } } //-------------------------------------------------------------------- -- 2.47.1