1
0
Fork 0

Fix renaming of max/min -> maximum/minimum

This commit is contained in:
Wilfried Goesgens 2016-02-29 13:59:11 +01:00
parent 06fe0c56ef
commit c86e1508a3
1 changed files with 6 additions and 5 deletions

View File

@ -208,9 +208,10 @@ struct UInt64Parameter : public NumericParameter<uint64_t> {
template <typename T>
struct BoundedParameter : public T {
BoundedParameter(typename T::ValueType* ptr, typename T::ValueType min,
typename T::ValueType max)
: T(ptr), minimum(min), maximum(max) {}
BoundedParameter(typename T::ValueType* ptr,
typename T::ValueType minimum,
typename T::ValueType maximum)
: T(ptr), minimum(minimum), maximum(maximum) {}
std::string set(std::string const& value) override {
try {
@ -224,8 +225,8 @@ struct BoundedParameter : public T {
} catch (...) {
return "invalid numeric value";
}
return "number out of allowed range (" + std::to_string(min) + " - " +
std::to_string(max) + ")";
return "number out of allowed range (" + std::to_string(minimum) + " - " +
std::to_string(maximum) + ")";
}
typename T::ValueType minimum;