From 288de2f3bf2d410d9e3e3a362f73f39a5a3245cf Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 27 Apr 2015 15:27:37 +0200 Subject: More loplugin:simplifybool Change-Id: I40650e3f9f0aea60b5b536e2bf40735583e4358b --- formula/source/ui/dlg/FormulaHelper.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'formula/source/ui') diff --git a/formula/source/ui/dlg/FormulaHelper.cxx b/formula/source/ui/dlg/FormulaHelper.cxx index 8afdfcd4c8ed..578842f3bba1 100644 --- a/formula/source/ui/dlg/FormulaHelper.cxx +++ b/formula/source/ui/dlg/FormulaHelper.cxx @@ -223,7 +223,7 @@ sal_Int32 FormulaHelper::GetFunctionStart( const OUString& rFormula, if (nParPos > 0) nParPos--; } - else if ( (bFound = ( rFormula[nParPos] == '(' ) ) == false ) + else if ( !(bFound = ( rFormula[nParPos] == '(' ) ) ) nParPos--; } } @@ -238,7 +238,7 @@ sal_Int32 FormulaHelper::GetFunctionStart( const OUString& rFormula, nParPos++; nParPos++; } - else if ( (bFound = ( rFormula[nParPos] == '(' ) ) == false ) + else if ( !(bFound = ( rFormula[nParPos] == '(' ) ) ) nParPos++; } } -- cgit