summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorm-holger <m-holger@kubitscheck.org>2022-07-23 15:15:55 +0200
committerm-holger <m-holger@kubitscheck.org>2022-07-24 16:59:49 +0200
commitb123f79dfd5015453bdbf5d53f8225d73b6b20aa (patch)
tree8f763910bd1e24a3044902e3499e3996ff832302 /include
parentc0168cf88c79c9b55a81f86892432f006b9c4d07 (diff)
downloadqpdf-b123f79dfd5015453bdbf5d53f8225d73b6b20aa.tar.zst
Replace QPDFObjectHandle::objid and generation with QPDFObjectHandle::og
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDFObjectHandle.hh5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/qpdf/QPDFObjectHandle.hh b/include/qpdf/QPDFObjectHandle.hh
index 804b76c7..fa96c4b0 100644
--- a/include/qpdf/QPDFObjectHandle.hh
+++ b/include/qpdf/QPDFObjectHandle.hh
@@ -1550,7 +1550,7 @@ class QPDFObjectHandle
bool isImage(bool exclude_imagemask = true);
private:
- QPDFObjectHandle(QPDF*, int objid, int generation);
+ QPDFObjectHandle(QPDF*, QPDFObjGen const& og);
QPDFObjectHandle(std::shared_ptr<QPDFObject> const&);
enum parser_state_e {
@@ -1617,8 +1617,7 @@ class QPDFObjectHandle
// a substantial performance penalty since QPDFObjectHandle
// objects are copied around so frequently.
QPDF* qpdf;
- int objid; // 0 for direct object
- int generation;
+ QPDFObjGen og;
std::shared_ptr<QPDFObject> obj;
bool reserved;
};