From e58fccdadbc2cce57b13cd4a8fc2f546415b80db Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 27 Apr 2015 15:27:52 +0200 Subject: More loplugin:simplifybool Change-Id: I64ec8a0525b935d12455f7ed236ffd367f47c070 --- hwpfilter/source/hiodev.cxx | 2 +- hwpfilter/source/hwpfile.cxx | 2 +- hwpfilter/source/hwpreader.cxx | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/hwpfilter/source/hiodev.cxx b/hwpfilter/source/hiodev.cxx index dd072b8c495b..03db63edd504 100644 --- a/hwpfilter/source/hiodev.cxx +++ b/hwpfilter/source/hiodev.cxx @@ -162,7 +162,7 @@ int HStreamIODev::state() const bool HStreamIODev::setCompressed(bool flag) { compressed = flag; - if (flag == true) + if (flag) return 0 != (_gzfp = gz_open(*_stream)); else if (_gzfp) { diff --git a/hwpfilter/source/hwpfile.cxx b/hwpfilter/source/hwpfile.cxx index 141fd7ff2f1e..b2aff1088dc0 100644 --- a/hwpfilter/source/hwpfile.cxx +++ b/hwpfilter/source/hwpfile.cxx @@ -300,7 +300,7 @@ void HWPFile::TagsRead() { EmPicture *emb = new EmPicture(size); - if (true == emb->Read(*this)) + if (emb->Read(*this)) emblist.push_back(emb); else delete emb; diff --git a/hwpfilter/source/hwpreader.cxx b/hwpfilter/source/hwpreader.cxx index 7a7a3d01f902..bcdf9d154640 100644 --- a/hwpfilter/source/hwpreader.cxx +++ b/hwpfilter/source/hwpreader.cxx @@ -853,11 +853,11 @@ void HwpReader::makeAutoStyles() for( i = 1; i <= 3 ; i++ ) { - if( i == 1 && bIsLeft == false ) + if( i == 1 && !bIsLeft ) continue; - if( i == 2 && bIsMiddle == false ) + if( i == 2 && !bIsMiddle ) continue; - if( i == 3 && bIsRight == false ) + if( i == 3 && !bIsRight ) continue; padd("style:name", sXML_CDATA, ascii(Int2Str(i,"PNPara%d", buf))); @@ -4359,7 +4359,7 @@ void HwpReader::makePictureDRAW(HWPDrawingObject *drawobj, Picture * hbox) yarr[n] = yarr[0]; tarr[n] = n; - if( bIsNatural == false ){ + if( !bIsNatural ){ PeriodicSpline(n, tarr, xarr, xb, carr, darr); // prevent memory leak delete[] carr; -- cgit