summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/tools/bigint.hxx2
-rw-r--r--tools/source/generic/bigint.cxx2
-rw-r--r--tools/source/zcodec/zcodec.cxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/include/tools/bigint.hxx b/include/tools/bigint.hxx
index cabff6bf0b59..ac0cb9297d56 100644
--- a/include/tools/bigint.hxx
+++ b/include/tools/bigint.hxx
@@ -114,7 +114,7 @@ public:
operator sal_uInt16() const;
operator sal_uIntPtr() const;
- void Set( bool bSet ) { bIsSet = bSet ? true : false; }
+ void Set( bool bSet ) { bIsSet = bSet; }
bool IsSet() const { return (bool)bIsSet; }
bool IsNeg() const;
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
{