Kaydet (Commit) 427b0baa authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:simplifybool

Change-Id: Ieae7ead7a1d55731d0be0dc339993ccd404b3578
üst 9d2a1a63
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment