[Gui] remove superfluous nullptr checks
This commit is contained in:
@@ -171,7 +171,7 @@ void ExpressionSpinBox::openFormulaDialog()
|
||||
PropertyQuantity * qprop = freecad_dynamic_cast<PropertyQuantity>(getPath().getProperty());
|
||||
Unit unit;
|
||||
|
||||
if (qprop != nullptr)
|
||||
if (qprop)
|
||||
unit = qprop->getUnit();
|
||||
|
||||
Gui::Dialog::DlgExpressionInput* box = new Gui::Dialog::DlgExpressionInput(getPath(), getExpression(), unit, spinbox);
|
||||
|
||||
Reference in New Issue
Block a user