[Libreoffice-commits] core.git: sc/source
Stephan Bergmann
sbergman at redhat.com
Thu Apr 30 00:27:09 PDT 2015
sc/source/core/tool/interpr2.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit f365cd8754839d6608ba4750e46fb277b5f3df26
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Thu Apr 30 09:26:40 2015 +0200
loplugin:simplifybool
Change-Id: I6bedf840c9fc0596b2dccbeb2f304738b74317b2
diff --git a/sc/source/core/tool/interpr2.cxx b/sc/source/core/tool/interpr2.cxx
index e331281..4b2420d 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 )
{
More information about the Libreoffice-commits
mailing list