# HG changeset patch # User Sebastien Jodogne # Date 1783415007 -7200 # Node ID ffef0c388025282bb4927850c67cb2ea42b50fed # Parent 365e738dd6f592b94132f270cee4bb4b68255082 added safeguard in switch-case diff -r 365e738dd6f5 -r ffef0c388025 Plugin/DicomWebFormatter.cpp --- a/Plugin/DicomWebFormatter.cpp Wed Jun 17 17:26:33 2026 +0200 +++ b/Plugin/DicomWebFormatter.cpp Tue Jul 07 11:03:27 2026 +0200 @@ -76,6 +76,9 @@ setter(node, that.mode_, uri.c_str()); break; } + + default: + PLUGIN_THROW_WITH_FILE_AND_LINE_INFO(Orthanc::ErrorCode_ParameterOutOfRange); } } diff -r 365e738dd6f5 -r ffef0c388025 Plugin/Plugin.cpp --- a/Plugin/Plugin.cpp Wed Jun 17 17:26:33 2026 +0200 +++ b/Plugin/Plugin.cpp Tue Jul 07 11:03:27 2026 +0200 @@ -508,7 +508,8 @@ } } - }; break; + break; + } case OrthancPluginChangeType_StableSeries: if (!OrthancPlugins::Configuration::IsReadOnly())