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:
Alexander Golubev
2015-08-29 18:35:59 +02:00
committed by wmayer
parent bbbefaf188
commit de2f8a26b2
+2 -2
View File
@@ -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");