From 29f5830325f810612b8c683282133c47f5da0b33 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Mon, 4 Mar 2013 10:59:20 -0500 Subject: 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. --- include/qpdf/QPDFObjectHandle.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/qpdf') 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. -- cgit v1.2.3-70-g09d2