aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2019-08-22 23:53:20 +0200
committerJay Berkenbilt <ejb@ql.org>2019-08-22 23:55:16 +0200
commit4b2e72c4cd7dc9bc17ad78ca983ff884c1e1ee69 (patch)
treeaf9dc8355ef29d6fd96a771ad9bb9de7f6ce70b6 /include
parent3f3dbe22eaae56df48af304c35a1c0b5dd976135 (diff)
downloadqpdf-4b2e72c4cd7dc9bc17ad78ca983ff884c1e1ee69.tar.zst
Test for direct, rather than resolved nulls in parser
Just because we know an indirect reference is null, doesn't mean we shouldn't keep it indirect.
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDFObjectHandle.hh11
1 files changed, 5 insertions, 6 deletions
diff --git a/include/qpdf/QPDFObjectHandle.hh b/include/qpdf/QPDFObjectHandle.hh
index 0569ec5d..58708f72 100644
--- a/include/qpdf/QPDFObjectHandle.hh
+++ b/include/qpdf/QPDFObjectHandle.hh
@@ -281,13 +281,12 @@ class QPDFObjectHandle
QPDF_DLL
bool isReserved();
- // True for objects that are direct nulls or have previously been
- // resolved to be nulls. Does not attempt to resolve objects. This
- // is intended for internal use, but it can be used as an
- // efficient way to check for nulls if you don't mind unresolved
- // indirect nulls being false negatives.
+ // True for objects that are direct nulls. Does not attempt to
+ // resolve objects. This is intended for internal use, but it can
+ // be used as an efficient way to check for nulls that are not
+ // indirect objects.
QPDF_DLL
- bool isResolvedNull() const;
+ bool isDirectNull() const;
// This returns true in addition to the query for the specific
// type for indirect objects.