summaryrefslogtreecommitdiff
path: root/hwpfilter/source/hwpfile.h
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-02-25 10:50:59 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-02-25 17:05:31 +0000
commitf974db5d89eacf0c23e303c22c62972014e9db16 (patch)
treeda33b75213c805b8f57ecab8d7e7a04786253807 /hwpfilter/source/hwpfile.h
parentcd231286f4a54e4998ad9f5a24f65a91bac2a07d (diff)
check if reads were successful
Change-Id: I69ab0ca9c017c9a1c10d18fd850f32a92c641d12 Reviewed-on: https://gerrit.libreoffice.org/14631 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'hwpfilter/source/hwpfile.h')
-rw-r--r--hwpfilter/source/hwpfile.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/hwpfilter/source/hwpfile.h b/hwpfilter/source/hwpfile.h
index 82ba103a991e..b28c2a440743 100644
--- a/hwpfilter/source/hwpfile.h
+++ b/hwpfilter/source/hwpfile.h
@@ -124,15 +124,17 @@ class DLLEXPORT HWPFile
/**
* Reads one byte from HIODev
*/
- int Read1b( void );
+ bool Read1b(char &out);
+ bool Read1b(unsigned char &out);
/**
* Reads two byte from HIODev
*/
- int Read2b( void );
+ bool Read2b(unsigned short &out);
/**
* Reads four byte from HIODev
*/
- long Read4b( void );
+ bool Read4b(unsigned int &out);
+ bool Read4b(int &out);
/**
* Reads nmemb byte array from HIODev
*/
@@ -191,7 +193,7 @@ class DLLEXPORT HWPFile
/**
* Reads additional information like embedded image of hwp file from HIODev
*/
- bool TagsRead(void);
+ void TagsRead();
enum Paper
{