]> Creatis software - clitk.git/commitdiff
Fix missing breaks + handle default in enum
authorSimon Rit <simon.rit@creatis.insa-lyon.fr>
Tue, 2 Sep 2014 06:36:45 +0000 (08:36 +0200)
committerSimon Rit <simon.rit@creatis.insa-lyon.fr>
Tue, 2 Sep 2014 06:38:09 +0000 (08:38 +0200)
tools/clitkAnisotropicDiffusionGenericFilter.cxx

index e020d543afdacae3bb89b20ebd5c27b110903768..408fe7fc654a58f3a49d56496588c33cd463a959 100644 (file)
@@ -90,6 +90,7 @@ AnisotropicDiffusionGenericFilter::UpdateWithInputImageType()
     gadFilter->SetConductanceParameter(mArgsInfo.conductance_arg);
     gadFilter->Update();
     this->template SetNextOutput<InputImageType>(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<InputImageType>(cadFilter->GetOutput());
+    break;
+  default:
+    itkGenericExceptionMacro("Unhandled type");
+    break;
   }
 }
 //--------------------------------------------------------------------