Core: fix minor issues:

+ fix issues found by clang's clazy tool
+ fix cppcoreguidelines-pro-type-member-init
  * Make sure that all class members are initialized in the constructor
This commit is contained in:
wmayer
2022-06-30 16:31:16 +02:00
parent 67ddf95f89
commit 97f9320bb3
3 changed files with 12 additions and 7 deletions

View File

@@ -193,14 +193,14 @@ void PropertyQuantityConstraint::setPyObject(PyObject *value)
quant.setValue(temp);
if (unit.isEmpty()){
PropertyFloat::setValue(quant.getValue());
PropertyFloat::setValue(quant.getValue()); // clazy:exclude=skipped-base-method
return;
}
if (unit != _Unit)
throw Base::UnitsMismatchError("Not matching Unit!");
PropertyFloat::setValue(quant.getValue());
PropertyFloat::setValue(quant.getValue()); // clazy:exclude=skipped-base-method
}
//**************************************************************************