aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFObjectHandle.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2019-08-18 00:54:24 +0200
committerJay Berkenbilt <ejb@ql.org>2019-08-18 05:02:41 +0200
commite83f3308fbccd34959d325b830118eafe441fe48 (patch)
treeb3ac08e39da91a00b67e147bd05f5379789fcbe3 /libqpdf/QPDFObjectHandle.cc
parent04419d7c3269aa29ff669c8b5f3a7999edb44bea (diff)
downloadqpdf-e83f3308fbccd34959d325b830118eafe441fe48.tar.zst
SparseOHArray
Diffstat (limited to 'libqpdf/QPDFObjectHandle.cc')
-rw-r--r--libqpdf/QPDFObjectHandle.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/libqpdf/QPDFObjectHandle.cc b/libqpdf/QPDFObjectHandle.cc
index 6f9671d5..853fdb89 100644
--- a/libqpdf/QPDFObjectHandle.cc
+++ b/libqpdf/QPDFObjectHandle.cc
@@ -248,6 +248,10 @@ class QPDFObjectTypeAccessor
{
return (o && dynamic_cast<T*>(o));
}
+ static bool check(QPDFObject const* o)
+ {
+ return (o && dynamic_cast<T const*>(o));
+ }
};
bool
@@ -258,6 +262,12 @@ QPDFObjectHandle::isBool()
}
bool
+QPDFObjectHandle::isResolvedNull() const
+{
+ return QPDFObjectTypeAccessor<QPDF_Null>::check(m->obj.getPointer());
+}
+
+bool
QPDFObjectHandle::isNull()
{
dereference();