coverity#1371177 avoid Missing move assignment operator

Change-Id: I15517a725e705db0f106b01eb9a013efeca4f47f
This commit is contained in:
Caolán McNamara 2016-09-29 21:17:10 +01:00
parent a218467c93
commit a15db9dbb3

View File

@ -92,8 +92,7 @@ namespace rptui
for ( sal_Int32 i=0; i<nCount; ++i ) for ( sal_Int32 i=0; i<nCount; ++i )
{ {
xFormatCondition.set( _rxRptControlModel->getByIndex( i ), UNO_QUERY_THROW ); xFormatCondition.set( _rxRptControlModel->getByIndex( i ), UNO_QUERY_THROW );
ReportFormula aFormula( xFormatCondition->getFormula() ); sFormulaExpression = ReportFormula(xFormatCondition->getFormula()).getExpression();
sFormulaExpression = aFormula.getExpression();
for ( ConditionalExpressions::const_iterator loop = m_aConditionalExpressions.begin(); for ( ConditionalExpressions::const_iterator loop = m_aConditionalExpressions.begin();
loop != m_aConditionalExpressions.end(); loop != m_aConditionalExpressions.end();
@ -105,8 +104,8 @@ namespace rptui
// the expression matches -> translate it to the new data source of the report control model // the expression matches -> translate it to the new data source of the report control model
sFormulaExpression = loop->second->assembleExpression( sNewUnprefixed, sLHS, sRHS ); sFormulaExpression = loop->second->assembleExpression( sNewUnprefixed, sLHS, sRHS );
aFormula = ReportFormula( ReportFormula::Expression, sFormulaExpression ); ReportFormula aFormula(ReportFormula(ReportFormula::Expression, sFormulaExpression));
xFormatCondition->setFormula( aFormula.getCompleteFormula() ); xFormatCondition->setFormula(aFormula.getCompleteFormula());
break; break;
} }
} }