diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-09-29 21:17:10 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-09-29 22:02:24 +0100 |
commit | a15db9dbb306031c9a4903a6875de94473c740da (patch) | |
tree | c2a5834ad50c70f2ed34c5dd6bf9892a33d99bd8 /reportdesign/source | |
parent | a218467c93cfe4c26414ac00cbb0503156d483ec (diff) |
coverity#1371177 avoid Missing move assignment operator
Change-Id: I15517a725e705db0f106b01eb9a013efeca4f47f
Diffstat (limited to 'reportdesign/source')
-rw-r--r-- | reportdesign/source/core/misc/conditionupdater.cxx | 7 |
1 files 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; i<nCount; ++i ) { xFormatCondition.set( _rxRptControlModel->getByIndex( 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; } } |