From 004cc81168ce4e9f9b2f8fddf3361f8c23323673 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 6 Nov 2018 10:19:19 +0200 Subject: loplugin:collapseif in dbaccess..lotuswordpro Change-Id: Ia2a0d25c3833dfde0cd28337361f3cbd2aa29662 Reviewed-on: https://gerrit.libreoffice.org/62934 Tested-by: Jenkins Reviewed-by: Noel Grandin --- formula/source/core/api/FormulaCompiler.cxx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'formula') diff --git a/formula/source/core/api/FormulaCompiler.cxx b/formula/source/core/api/FormulaCompiler.cxx index 09ac290d43af..b0938aa630be 100644 --- a/formula/source/core/api/FormulaCompiler.cxx +++ b/formula/source/core/api/FormulaCompiler.cxx @@ -2101,11 +2101,8 @@ bool FormulaCompiler::CompileTokenArray() FormulaToken** pData = pDataArray + 1; pCode = pData; bool bWasForced = pArr->IsRecalcModeForced(); - if ( bWasForced ) - { - if ( bAutoCorrect ) - aCorrectedFormula = "="; - } + if ( bWasForced && bAutoCorrect ) + aCorrectedFormula = "="; pArr->ClearRecalcMode(); maArrIterator.Reset(); eLastOp = ocOpen; -- cgit v1.2.3