From a15db9dbb306031c9a4903a6875de94473c740da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Thu, 29 Sep 2016 21:17:10 +0100 Subject: [PATCH] coverity#1371177 avoid Missing move assignment operator Change-Id: I15517a725e705db0f106b01eb9a013efeca4f47f --- reportdesign/source/core/misc/conditionupdater.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/reportdesign/source/core/misc/conditionupdater.cxx b/reportdesign/source/core/misc/conditionupdater.cxx index 131089c9de98..cb3317bdc799 100644 --- a/reportdesign/source/core/misc/conditionupdater.cxx +++ b/reportdesign/source/core/misc/conditionupdater.cxx @@ -92,8 +92,7 @@ namespace rptui for ( sal_Int32 i=0; igetByIndex( i ), UNO_QUERY_THROW ); - ReportFormula aFormula( xFormatCondition->getFormula() ); - sFormulaExpression = aFormula.getExpression(); + sFormulaExpression = ReportFormula(xFormatCondition->getFormula()).getExpression(); for ( ConditionalExpressions::const_iterator loop = m_aConditionalExpressions.begin(); 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 sFormulaExpression = loop->second->assembleExpression( sNewUnprefixed, sLHS, sRHS ); - aFormula = ReportFormula( ReportFormula::Expression, sFormulaExpression ); - xFormatCondition->setFormula( aFormula.getCompleteFormula() ); + ReportFormula aFormula(ReportFormula(ReportFormula::Expression, sFormulaExpression)); + xFormatCondition->setFormula(aFormula.getCompleteFormula()); break; } }