Mod/Spreadsheet: suppress warnings
Warnings was: src/Mod/Spreadsheet/App/Expression.cpp|788 col 20| warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
This commit is contained in:
parent
bbbefaf188
commit
de2f8a26b2
|
@ -805,9 +805,9 @@ Expression * FunctionExpression::eval() const
|
|||
if (!p)
|
||||
continue;
|
||||
|
||||
if (qp = freecad_dynamic_cast<PropertyQuantity>(p))
|
||||
if ( (qp = freecad_dynamic_cast<PropertyQuantity>(p)) )
|
||||
value = qp->getQuantityValue();
|
||||
else if (fp = freecad_dynamic_cast<PropertyFloat>(p))
|
||||
else if ( (fp = freecad_dynamic_cast<PropertyFloat>(p)) )
|
||||
value = fp->getValue();
|
||||
else
|
||||
throw Exception("Invalid property type for aggregate");
|
||||
|
|
Loading…
Reference in New Issue
Block a user