diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-08 09:51:17 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-08 08:41:38 +0000 |
commit | 1a743fd8a27d063525e3567619a2971770c61574 (patch) | |
tree | 0bbb838762285342beab2711e867ff695a05a7b7 /hwpfilter | |
parent | bc57a3e319bccb2d48549a3134d5dcd4336d4533 (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')
-rw-r--r-- | hwpfilter/source/hwpfile.cxx | 7 | ||||
-rw-r--r-- | hwpfilter/source/hwpfile.h | 1 |
2 files changed, 1 insertions, 7 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; diff --git a/hwpfilter/source/hwpfile.h b/hwpfilter/source/hwpfile.h index 36e332de80c8..793354e4c508 100644 --- a/hwpfilter/source/hwpfile.h +++ b/hwpfilter/source/hwpfile.h @@ -125,7 +125,6 @@ class DLLEXPORT HWPFile * Reads one byte from HIODev */ bool Read1b(char &out); - bool Read1b(unsigned char &out); /** * Reads two byte from HIODev */ |