diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-04-27 15:27:29 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-04-27 15:30:55 +0200 |
commit | e8d9bf50780b9be871a49035e62c94b9976d84bc (patch) | |
tree | 2d38157a2a482b02ec82bd7adcd8a248a8251d51 /filter/source/graphicfilter/itiff/ccidecom.cxx | |
parent | 4591a1373ad2ba726f321b6c11576464a40df621 (diff) |
More loplugin:simplifybool
Change-Id: I49ef963c3c10614d3dd3012a756a1ca81aa62391
Diffstat (limited to 'filter/source/graphicfilter/itiff/ccidecom.cxx')
-rw-r--r-- | filter/source/graphicfilter/itiff/ccidecom.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/filter/source/graphicfilter/itiff/ccidecom.cxx b/filter/source/graphicfilter/itiff/ccidecom.cxx index 6cd2c4141533..f7eed8141085 100644 --- a/filter/source/graphicfilter/itiff/ccidecom.cxx +++ b/filter/source/graphicfilter/itiff/ccidecom.cxx @@ -635,7 +635,7 @@ bool CCIDecompressor::DecompressScanline( sal_uInt8 * pTarget, sal_uLong nTarget if ( nEOLCount >= 5 ) // RTC (Return To Controller) return true; - if ( bStatus == false ) + if ( !bStatus ) return false; // If EOL-Codes exist, the EOL-Code also appeared in front of the first line. @@ -648,7 +648,7 @@ bool CCIDecompressor::DecompressScanline( sal_uInt8 * pTarget, sal_uLong nTarget sal_uInt32 nCurPos = pIStream->Tell(); sal_uInt16 nOldInputBitsBufSize = nInputBitsBufSize; sal_uInt32 nOldInputBitsBuf = nInputBitsBuf; - if ( ReadEOL( 32 ) == false ) + if ( !ReadEOL( 32 ) ) { nInputBitsBufSize = nOldInputBitsBufSize; nInputBitsBuf = nOldInputBitsBuf; @@ -659,7 +659,7 @@ bool CCIDecompressor::DecompressScanline( sal_uInt8 * pTarget, sal_uLong nTarget } else { - if ( ReadEOL( nTargetBits ) == false ) + if ( !ReadEOL( nTargetBits ) ) { return bStatus; } @@ -1010,7 +1010,7 @@ void CCIDecompressor::Read1DScanlineData(sal_uInt8 * pTarget, sal_uInt16 nTarget // should the situation arise, switch Black <-> White: if (bTerminatingCode) nBlackOrWhite = ~nBlackOrWhite; - } while (nTargetBits>0 || bTerminatingCode==false); + } while (nTargetBits>0 || !bTerminatingCode); } @@ -1026,7 +1026,7 @@ void CCIDecompressor::Read2DScanlineData(sal_uInt8 * pTarget, sal_uInt16 nTarget while (nBitPos<nTargetBits && bStatus) { n2DMode=ReadCodeAndDecode(p2DModeLookUp,10); - if (bStatus==false) return; + if (!bStatus) return; if (n2DMode==CCI2DMODE_UNCOMP) { for (;;) { |