summaryrefslogtreecommitdiff
path: root/hwpfilter/source/hwpfile.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-11-08 09:51:17 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-11-08 08:41:38 +0000
commit1a743fd8a27d063525e3567619a2971770c61574 (patch)
tree0bbb838762285342beab2711e867ff695a05a7b7 /hwpfilter/source/hwpfile.cxx
parentbc57a3e319bccb2d48549a3134d5dcd4336d4533 (diff)
loplugin:expandablemethods in hwpfilter..linguistic
Change-Id: I62ae20ab4a47b3b7e2b0d503cedcad3319cc9c85 Reviewed-on: https://gerrit.libreoffice.org/30683 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'hwpfilter/source/hwpfile.cxx')
-rw-r--r--hwpfilter/source/hwpfile.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/hwpfilter/source/hwpfile.cxx b/hwpfilter/source/hwpfile.cxx
index 0c8a88c07be6..3abfcac3086b 100644
--- a/hwpfilter/source/hwpfile.cxx
+++ b/hwpfilter/source/hwpfile.cxx
@@ -138,15 +138,10 @@ int HWPFile::SetState(int errcode)
return error_code;
}
-bool HWPFile::Read1b(unsigned char &out)
-{
- return hiodev && hiodev->read1b(out);
-}
-
bool HWPFile::Read1b(char &out)
{
unsigned char tmp8;
- if (!Read1b(tmp8))
+ if (!hiodev || !hiodev->read1b(tmp8))
return false;
out = tmp8;
return true;