Make QPDFObjectHandle::assertPageObject() public.

The method is helpful in other places, like the upcoming QPDF::addPage, too.
This commit is contained in:
Tobias Hoffmann 2012-06-19 00:50:23 +02:00 committed by Jay Berkenbilt
parent 47a846a7e0
commit 405a549f8c
1 changed files with 4 additions and 1 deletions

View File

@ -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();