summaryrefslogtreecommitdiff
path: root/idl
diff options
context:
space:
mode:
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 );