Use constexpr based definitions instead of macros

This commit is contained in:
2026-04-28 14:20:58 +02:00
parent e3447b13e6
commit beb4f316e5
10 changed files with 49 additions and 54 deletions
+2 -2
View File
@@ -39,8 +39,8 @@ ImageFormatSettings &ImageFormatSettings::JungfrauConvFactor_keV(const std::opti
if (!input.has_value() || (input.value() == 0.0f))
jungfrau_conversion_factor_keV = {};
else {
check_min("JUNGFRAU conversion factor (keV)", input.value(), MIN_ENERGY);
check_max("JUNGFRAU conversion factor (keV)", input.value(), MAX_ENERGY);
check_min("JUNGFRAU conversion factor (keV)", input.value(), MIN_ENERGY_KEV);
check_max("JUNGFRAU conversion factor (keV)", input.value(), MAX_ENERGY_KEV);
jungfrau_conversion_factor_keV = input;
}
return *this;