summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-04-24 12:34:10 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-04-24 12:36:30 +0200
commit877fe59c4e398e6b9b2d4a8ea9904a59203fcd26 (patch)
tree994862eeb0bb57dcc39316110c98aa6dfc31b467 /tools
parente710c1dbfb87a54d666752db1106b76e9e05ba43 (diff)
loplugin:simplifybool
Change-Id: Id1c743da4294b667438a2c075de4634bb2c85ff3
Diffstat (limited to 'tools')
-rw-r--r--tools/source/generic/bigint.cxx2
-rw-r--r--tools/source/zcodec/zcodec.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/source/generic/bigint.cxx b/tools/source/generic/bigint.cxx
index fd21f55a8270..ff8ea889a4e3 100644
--- a/tools/source/generic/bigint.cxx
+++ b/tools/source/generic/bigint.cxx
@@ -507,7 +507,7 @@ BigInt::BigInt( const OUString& rString )
p++;
}
if ( bIsBig )
- bIsNeg = bNeg ? true : false;
+ bIsNeg = bNeg;
else if( bNeg )
nVal = -nVal;
}
diff --git a/tools/source/zcodec/zcodec.cxx b/tools/source/zcodec/zcodec.cxx
index fdb28829d3c4..d6bce145a188 100644
--- a/tools/source/zcodec/zcodec.cxx
+++ b/tools/source/zcodec/zcodec.cxx
@@ -380,7 +380,7 @@ void ZCodec::InitDecompress(SvStream & inStream)
if ( nFlags & GZ_HEAD_CRC )
inStream.SeekRel( 2 );
if ( mbStatus )
- mbStatus = ( inflateInit2( PZSTREAM, -MAX_WBITS) != Z_OK ) ? false : true;
+ mbStatus = inflateInit2( PZSTREAM, -MAX_WBITS) == Z_OK;
}
else
{