aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFObjectHandle.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libqpdf/QPDFObjectHandle.cc')
-rw-r--r--libqpdf/QPDFObjectHandle.cc9
1 files changed, 1 insertions, 8 deletions
diff --git a/libqpdf/QPDFObjectHandle.cc b/libqpdf/QPDFObjectHandle.cc
index 516e38b9..297221df 100644
--- a/libqpdf/QPDFObjectHandle.cc
+++ b/libqpdf/QPDFObjectHandle.cc
@@ -1295,14 +1295,7 @@ void
QPDFObjectHandle::replaceOrRemoveKey(
std::string const& key, QPDFObjectHandle const& value)
{
- if (isDictionary()) {
- checkOwnership(value);
- dynamic_cast<QPDF_Dictionary*>(obj.get())->replaceOrRemoveKey(
- key, value);
- } else {
- typeWarning("dictionary", "ignoring key removal/replacement request");
- QTC::TC("qpdf", "QPDFObjectHandle dictionary ignoring removereplace");
- }
+ replaceKey(key, value);
}
// Stream accessors