Use constexpr based definitions instead of macros
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user