aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFObjectHandle.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2021-01-31 13:13:04 +0100
committerJay Berkenbilt <ejb@ql.org>2021-01-31 13:16:03 +0100
commit4ae93a73c5bbf36cf2b36712b0df7acabbc1e61a (patch)
tree58c3193f4192f43b4c3ea190249a4a64b726bdc0 /libqpdf/QPDFObjectHandle.cc
parent1fec40454ef72c6e2f079b599e9c807ce69a4bec (diff)
downloadqpdf-4ae93a73c5bbf36cf2b36712b0df7acabbc1e61a.tar.zst
Improve memory safety of dict/array iterators
Diffstat (limited to 'libqpdf/QPDFObjectHandle.cc')
-rw-r--r--libqpdf/QPDFObjectHandle.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libqpdf/QPDFObjectHandle.cc b/libqpdf/QPDFObjectHandle.cc
index 288b5256..15907f6e 100644
--- a/libqpdf/QPDFObjectHandle.cc
+++ b/libqpdf/QPDFObjectHandle.cc
@@ -3080,7 +3080,7 @@ QPDFObjectHandle::warn(QPDF* qpdf, QPDFExc const& e)
}
}
-QPDFDictItems::QPDFDictItems(QPDFObjectHandle& oh) :
+QPDFDictItems::QPDFDictItems(QPDFObjectHandle const& oh) :
oh(oh)
{
}
@@ -3171,7 +3171,7 @@ QPDFDictItems::end()
return iterator(oh, false);
}
-QPDFArrayItems::QPDFArrayItems(QPDFObjectHandle& oh) :
+QPDFArrayItems::QPDFArrayItems(QPDFObjectHandle const& oh) :
oh(oh)
{
}