comparison OrthancStone/Sources/Toolbox/Internals/BucketMapper.cpp @ 1916:bd527bbc34df

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sun, 20 Mar 2022 18:23:39 +0100
parents 3716d72161d2
children 07964689cb0b
comparison
equal deleted inserted replaced
1915:0d1235ca4abc 1916:bd527bbc34df
39 minValue_(minValue), 39 minValue_(minValue),
40 maxValue_(maxValue), 40 maxValue_(maxValue),
41 bucketsCount_(bucketsCount) 41 bucketsCount_(bucketsCount)
42 { 42 {
43 if (minValue >= maxValue || 43 if (minValue >= maxValue ||
44 bucketsCount <= 0) 44 bucketsCount == 0)
45 { 45 {
46 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange); 46 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange);
47 } 47 }
48 } 48 }
49 49