summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTobias Hoffmann <thobi@worker>2012-06-19 00:50:23 +0200
committerJay Berkenbilt <ejb@ql.org>2012-06-21 21:01:02 +0200
commit405a549f8c86769d14d6a350621f4642dd30920f (patch)
tree9dfbfcad413369965fa0f40ea761de26310b4875 /include
parent47a846a7e0bad4d1176c2c372618576987d4ce24 (diff)
downloadqpdf-405a549f8c86769d14d6a350621f4642dd30920f.tar.zst
Make QPDFObjectHandle::assertPageObject() public.
The method is helpful in other places, like the upcoming QPDF::addPage, too.
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDFObjectHandle.hh5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/qpdf/QPDFObjectHandle.hh b/include/qpdf/QPDFObjectHandle.hh
index c0a150ec..3a4bff13 100644
--- a/include/qpdf/QPDFObjectHandle.hh
+++ b/include/qpdf/QPDFObjectHandle.hh
@@ -376,6 +376,10 @@ class QPDFObjectHandle
};
friend class ReleaseResolver;
+ // Convenience routine: Throws if the assumption is violated.
+ QPDF_DLL
+ void assertPageObject();
+
private:
QPDFObjectHandle(QPDF*, int objid, int generation);
QPDFObjectHandle(QPDFObject*);
@@ -388,7 +392,6 @@ class QPDFObjectHandle
void assertInitialized() const;
void assertType(char const* type_name, bool istype);
- void assertPageObject();
void dereference();
void makeDirectInternal(std::set<int>& visited);
void releaseResolved();