summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2010-09-24 21:10:08 +0200
committerJay Berkenbilt <ejb@ql.org>2010-09-24 21:10:08 +0200
commitce8b1ba6a5a5650d90571f5c39855af341dfad47 (patch)
tree8604c8d4a96f67fb44e830a6177a9f931c27fc30 /include
parentaa035961b38b6f01090e6f6a2ee4c9b9fb5041e8 (diff)
downloadqpdf-ce8b1ba6a5a5650d90571f5c39855af341dfad47.tar.zst
convert file to a PointerHolder<InputSource> so it could be either a file or a buffer; also fix a bug in BufferInputSource::seek
git-svn-id: svn+q:///qpdf/trunk@1030 71b93d88-0707-0410-a8cf-f5a4172ac649
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDF.hh11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/qpdf/QPDF.hh b/include/qpdf/QPDF.hh
index ef25343a..71e8590e 100644
--- a/include/qpdf/QPDF.hh
+++ b/include/qpdf/QPDF.hh
@@ -423,15 +423,16 @@ class QPDF
void setLastObjectDescription(std::string const& description,
int objid, int generation);
QPDFObjectHandle readObject(
- InputSource*, std::string const& description,
+ PointerHolder<InputSource>, std::string const& description,
int objid, int generation, bool in_object_stream);
QPDFObjectHandle readObjectInternal(
- InputSource* input, int objid, int generation,
+ PointerHolder<InputSource> input, int objid, int generation,
bool in_object_stream,
bool in_array, bool in_dictionary);
int recoverStreamLength(
- InputSource* input, int objid, int generation, off_t stream_offset);
- QPDFTokenizer::Token readToken(InputSource*);
+ PointerHolder<InputSource> input, int objid, int generation,
+ off_t stream_offset);
+ QPDFTokenizer::Token readToken(PointerHolder<InputSource>);
QPDFObjectHandle readObjectAtOffset(
bool attempt_recovery,
@@ -785,7 +786,7 @@ class QPDF
QPDFTokenizer tokenizer;
- FileInputSource file;
+ PointerHolder<InputSource> file;
std::string last_object_description;
bool encrypted;
bool encryption_initialized;