diff options
Diffstat (limited to 'include/qpdf/QPDFObject.hh')
-rw-r--r-- | include/qpdf/QPDFObject.hh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/qpdf/QPDFObject.hh b/include/qpdf/QPDFObject.hh index 7bb7c6e1..751a5736 100644 --- a/include/qpdf/QPDFObject.hh +++ b/include/qpdf/QPDFObject.hh @@ -153,10 +153,19 @@ class QPDFObject } bool - isUnresolved() + isUnresolved() const { return value->type_code == ::ot_unresolved; } + void + resolve() + { + if (isUnresolved()) { + doResolve(); + } + } + void doResolve(); + template <typename T> T* as() |