diff options
author | Jay Berkenbilt <ejb@ql.org> | 2013-03-04 16:59:20 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2013-03-05 19:35:46 +0100 |
commit | 29f5830325f810612b8c683282133c47f5da0b33 (patch) | |
tree | f454aad34dbfcd42dfcb14222ca7493a564c58cd /include | |
parent | 119f2a4b684aae7cec8841412a5fc89bcbae404d (diff) | |
download | qpdf-29f5830325f810612b8c683282133c47f5da0b33.tar.zst |
Fix getTypeCode and getTypeName work for indirect objects
Remove const qualifier from getTypeCode and get getTypeName methods of
QPDFObjectHandle, make them work properly for indirect objects, and
exercise them much better in the test suite.
Diffstat (limited to 'include')
-rw-r--r-- | include/qpdf/QPDFObjectHandle.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/qpdf/QPDFObjectHandle.hh b/include/qpdf/QPDFObjectHandle.hh index c42fa719..60304ed5 100644 --- a/include/qpdf/QPDFObjectHandle.hh +++ b/include/qpdf/QPDFObjectHandle.hh @@ -102,9 +102,9 @@ class QPDFObjectHandle // useful for doing rapid type tests (like switch statements) or // for testing and debugging. QPDF_DLL - QPDFObject::object_type_e getTypeCode() const; + QPDFObject::object_type_e getTypeCode(); QPDF_DLL - char const* getTypeName() const; + char const* getTypeName(); // Exactly one of these will return true for any object. Operator // and InlineImage are only allowed in content streams. |