summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2013-03-04 16:59:20 +0100
committerJay Berkenbilt <ejb@ql.org>2013-03-05 19:35:46 +0100
commit29f5830325f810612b8c683282133c47f5da0b33 (patch)
treef454aad34dbfcd42dfcb14222ca7493a564c58cd /include
parent119f2a4b684aae7cec8841412a5fc89bcbae404d (diff)
downloadqpdf-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.hh4
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.