added safeguard in switch-case
| author |
Sebastien Jodogne <s.jodogne@gmail.com> |
| date |
Tue, 07 Jul 2026 11:03:27 +0200 |
| parents |
365e738dd6f5 |
| children |
d7e2afd17a3b |
| files |
Plugin/DicomWebFormatter.cpp Plugin/Plugin.cpp |
| diffstat |
2 files changed, 5 insertions(+), 1 deletions(-)
[+]
|
line diff
--- 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);
}
}
--- 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())