diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-04-24 12:26:19 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-04-24 12:36:22 +0200 |
commit | 691197bff74e4a53dcb8864d0770338b9f2af402 (patch) | |
tree | 4ecddb2564b6e49c227feacdcbe3922e738dc13f /hwpfilter/source/hwpfile.cxx | |
parent | loplugin:simplifybool (diff) | |
download | core-691197bff74e4a53dcb8864d0770338b9f2af402.tar.gz core-691197bff74e4a53dcb8864d0770338b9f2af402.zip |
loplugin:simplifybool
Change-Id: Ic42cf05f9eddb0cd7724d16cc73a8d6495c193f2
Diffstat (limited to 'hwpfilter/source/hwpfile.cxx')
-rw-r--r-- | hwpfilter/source/hwpfile.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hwpfilter/source/hwpfile.cxx b/hwpfilter/source/hwpfile.cxx index b80f8c1fd05e..141fd7ff2f1e 100644 --- a/hwpfilter/source/hwpfile.cxx +++ b/hwpfilter/source/hwpfile.cxx @@ -140,7 +140,7 @@ int HWPFile::SetState(int errcode) bool HWPFile::Read1b(unsigned char &out) { - return hiodev ? hiodev->read1b(out) : false; + return hiodev && hiodev->read1b(out); } bool HWPFile::Read1b(char &out) @@ -154,12 +154,12 @@ bool HWPFile::Read1b(char &out) bool HWPFile::Read2b(unsigned short &out) { - return hiodev ? hiodev->read2b(out) : false; + return hiodev && hiodev->read2b(out); } bool HWPFile::Read4b(unsigned int &out) { - return hiodev ? hiodev->read4b(out) : false; + return hiodev && hiodev->read4b(out); } bool HWPFile::Read4b(int &out) @@ -202,7 +202,7 @@ size_t HWPFile::SkipBlock(size_t size) bool HWPFile::SetCompressed(bool flag) { - return hiodev ? hiodev->setCompressed(flag) : false; + return hiodev && hiodev->setCompressed(flag); } |