summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-reader/ztxt.h
Unidiff
Diffstat (limited to 'noncore/apps/opie-reader/ztxt.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-reader/ztxt.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/noncore/apps/opie-reader/ztxt.h b/noncore/apps/opie-reader/ztxt.h
index 7be45c0..20558a6 100644
--- a/noncore/apps/opie-reader/ztxt.h
+++ b/noncore/apps/opie-reader/ztxt.h
@@ -4,3 +4,3 @@
4#include "CExpander.h" 4#include "CExpander.h"
5#include <zlib.h> 5#include "zlib/zlib.h"
6#include "pdb.h" 6#include "pdb.h"
@@ -78,16 +78,16 @@ class ztxt : public CExpander, Cpdb
78 virtual void sizes(unsigned long& _file, unsigned long& _text) 78 virtual void sizes(unsigned long& _file, unsigned long& _text)
79 { 79 {
80 _file = file_length; 80 _file = file_length;
81 _text = ntohl(hdr0.size); 81 _text = ntohl(hdr0.size);
82 } 82 }
83 virtual bool hasrandomaccess() { return (hdr0.randomAccess != 0); } 83 virtual bool hasrandomaccess() { return (hdr0.randomAccess != 0); }
84 virtual ~ztxt() 84 virtual ~ztxt()
85 { 85 {
86 if (expandedtextbuffer != NULL) delete [] expandedtextbuffer; 86 if (expandedtextbuffer != NULL) delete [] expandedtextbuffer;
87 if (compressedtextbuffer != NULL) delete [] compressedtextbuffer; 87 if (compressedtextbuffer != NULL) delete [] compressedtextbuffer;
88 if (bInit) 88 if (bInit)
89 { 89 {
90 inflateEnd(&zstream); 90 inflateEnd(&zstream);
91 } 91 }
92 } 92 }
93 ztxt(); 93 ztxt();
@@ -99,5 +99,5 @@ class ztxt : public CExpander, Cpdb
99 virtual MarkupType PreferredMarkup() 99 virtual MarkupType PreferredMarkup()
100 { 100 {
101 return cTEXT; 101 return cTEXT;
102 } 102 }
103}; 103};