summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-04-30 09:26:40 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-04-30 09:26:40 +0200
commitf365cd8754839d6608ba4750e46fb277b5f3df26 (patch)
tree9e329ace32e8e5242b7fa427524115c45e2d375b
parentf3bf0319383261d78b976b62f7e3e0f2adbacf20 (diff)
loplugin:simplifybool
Change-Id: I6bedf840c9fc0596b2dccbeb2f304738b74317b2
-rw-r--r--sc/source/core/tool/interpr2.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/tool/interpr2.cxx b/sc/source/core/tool/interpr2.cxx
index e3312811698b..4b2420d4bda7 100644
--- a/sc/source/core/tool/interpr2.cxx
+++ b/sc/source/core/tool/interpr2.cxx
@@ -806,7 +806,7 @@ void ScInterpreter::ScCeil( bool bODFF )
sal_uInt8 nParamCount = GetByte();
if ( MustHaveParamCount( nParamCount, 1, 3 ) )
{
- bool bAbs = ( nParamCount == 3 ? GetBool() : false );
+ bool bAbs = nParamCount == 3 && GetBool();
double fDec, fVal;
if ( nParamCount == 1 )
{