[Libreoffice-commits] core.git: vcl/osx
Stephan Bergmann
sbergman at redhat.com
Sun Oct 25 12:27:02 PDT 2015
vcl/osx/printaccessoryview.mm | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 4415c9f54d8e723343c90561377ea4b8b4654a8a
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Sun Oct 25 20:26:37 2015 +0100
loplugin:simplifybool
Change-Id: Ice6dfc7b8e295f322f38f8bc8f01d6776c742e54
diff --git a/vcl/osx/printaccessoryview.mm b/vcl/osx/printaccessoryview.mm
index b4042d2..22a61a9 100644
--- a/vcl/osx/printaccessoryview.mm
+++ b/vcl/osx/printaccessoryview.mm
@@ -1085,7 +1085,7 @@ static void addEdit( NSView* pCurParent, long& rCurX, long& rCurY, long nAttachO
{
sal_Bool bValue = sal_True;
rEntry.Value >>= bValue;
- bEnabled = bValue ? true : false;
+ bEnabled = bValue;
}
else if( rEntry.Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("MinValue")) )
{
@@ -1103,7 +1103,7 @@ static void addEdit( NSView* pCurParent, long& rCurX, long& rCurY, long nAttachO
{
sal_Bool bValue = sal_False;
rEntry.Value >>= bValue;
- bIgnore = bValue ? true : false;
+ bIgnore = bValue;
}
else if( rEntry.Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("GroupingHint")) )
{
@@ -1182,7 +1182,7 @@ static void addEdit( NSView* pCurParent, long& rCurX, long& rCurY, long nAttachO
if( pVal )
pVal->Value >>= bVal;
addBool( pCurParent, nCurX, nCurY, nAttachOffset,
- aText, true, aPropertyName, bVal?true:false,
+ aText, true, aPropertyName, bVal,
aRightColumn, pControllerProperties, pCtrlTarget );
}
else if( aCtrlType.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("Radio")) && pCurParent )
More information about the Libreoffice-commits
mailing list