App: [skip ci] handle types long and unsigned long in PropertyFloat::setPathValue()

This commit is contained in:
wmayer
2020-04-27 12:44:54 +02:00
parent b210066650
commit 1a3285219a

View File

@@ -1030,6 +1030,10 @@ void PropertyFloat::setPathValue(const ObjectIdentifier &path, const boost::any
setValue(boost::any_cast<double>(value));
else if (value.type() == typeid(Quantity))
setValue((boost::any_cast<Quantity>(value)).getValue());
else if (value.type() == typeid(long))
setValue(boost::any_cast<long>(value));
else if (value.type() == typeid(unsigned long))
setValue(boost::any_cast<unsigned long>(value));
else
throw bad_cast();
}