summaryrefslogtreecommitdiff
path: root/hwpfilter
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-04-24 09:23:15 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-04-24 10:05:54 +0200
commita975225678c00272fc6e2ee2c85e6fe00a2204f1 (patch)
tree47aa7fdcd49221fd3084b9d77418b6690b7bc0e0 /hwpfilter
parent78a3a304871eb3eb861a49ed00345b54fba01114 (diff)
clang-tidy readability-simplify-boolean-expr in hwpfilter..lotuswordpro
Change-Id: I945d3fe6af5f88937b341dfc3696bf1d36344862 Reviewed-on: https://gerrit.libreoffice.org/36874 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'hwpfilter')
-rw-r--r--hwpfilter/source/hiodev.cxx4
-rw-r--r--hwpfilter/source/htags.cxx4
2 files changed, 2 insertions, 6 deletions
diff --git a/hwpfilter/source/hiodev.cxx b/hwpfilter/source/hiodev.cxx
index 45ccb987bcd5..25822a856827 100644
--- a/hwpfilter/source/hiodev.cxx
+++ b/hwpfilter/source/hiodev.cxx
@@ -133,9 +133,7 @@ void HStreamIODev::init()
bool HStreamIODev::open()
{
- if (!(_stream->available()))
- return false;
- return true;
+ return _stream->available() != 0;
}
diff --git a/hwpfilter/source/htags.cxx b/hwpfilter/source/htags.cxx
index 7a9ebabe82be..52e6a78b85f1 100644
--- a/hwpfilter/source/htags.cxx
+++ b/hwpfilter/source/htags.cxx
@@ -70,9 +70,7 @@ bool EmPicture::Read(HWPFile & hwpf)
name[0] = 'H';
name[1] = 'W';
name[2] = 'P';
- if (hwpf.ReadBlock(data, size) == 0)
- return false;
- return true;
+ return hwpf.ReadBlock(data, size) != 0;
}