From bdea1ec0f68ece8feb07a9d31f1be24cacdfc1d2 Mon Sep 17 00:00:00 2001 From: wmayer Date: Sat, 9 May 2020 16:44:08 +0200 Subject: [PATCH] App: [skip ci] remove duplicate check --- src/App/PropertyStandard.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/App/PropertyStandard.cpp b/src/App/PropertyStandard.cpp index fea316a52a..36ae665353 100644 --- a/src/App/PropertyStandard.cpp +++ b/src/App/PropertyStandard.cpp @@ -1030,6 +1030,8 @@ void PropertyFloat::setPathValue(const ObjectIdentifier &path, const boost::any if (value.type() == typeid(long)) setValue(boost::any_cast(value)); + else if (value.type() == typeid(unsigned long)) + setValue(boost::any_cast(value)); else if (value.type() == typeid(int)) setValue(boost::any_cast(value)); else if (value.type() == typeid(double)) @@ -1038,10 +1040,6 @@ void PropertyFloat::setPathValue(const ObjectIdentifier &path, const boost::any setValue(boost::any_cast(value)); else if (value.type() == typeid(Quantity)) setValue((boost::any_cast(value)).getValue()); - else if (value.type() == typeid(long)) - setValue(boost::any_cast(value)); - else if (value.type() == typeid(unsigned long)) - setValue(boost::any_cast(value)); else throw bad_cast(); }