summaryrefslogtreecommitdiff
path: root/idl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-04-24 12:26:28 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-04-24 12:36:23 +0200
commit427b0baaa221245ded7a943947401b28ca05c573 (patch)
tree0ac779ad707ba1abd9263b595ea7a630aa8c685a /idl
parent9d2a1a635c341575342a50749c3e54df0ee11f33 (diff)
loplugin:simplifybool
Change-Id: Ieae7ead7a1d55731d0be0dc339993ccd404b3578
Diffstat (limited to 'idl')
-rw-r--r--idl/source/objects/bastype.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/idl/source/objects/bastype.cxx b/idl/source/objects/bastype.cxx
index 6eba84df8f0c..5b1548526e19 100644
--- a/idl/source/objects/bastype.cxx
+++ b/idl/source/objects/bastype.cxx
@@ -69,8 +69,8 @@ SvStream& operator >> (SvStream & rStm, SvBOOL & rb )
{
sal_uInt8 n;
rStm.ReadUChar( n );
- rb.nVal = (n & 0x01) ? true : false;
- rb.bSet = (n & 0x02) ? true : false;
+ rb.nVal = (n & 0x01) != 0;
+ rb.bSet = (n & 0x02) != 0;
if( n & ~0x03 )
{
rStm.SetError( SVSTREAM_FILEFORMAT_ERROR );