diff options
author | m-holger <m-holger@kubitscheck.org> | 2023-02-17 15:59:33 +0100 |
---|---|---|
committer | m-holger <m-holger@kubitscheck.org> | 2023-02-18 09:35:45 +0100 |
commit | 07bb5c3dd6213af9c9a64e17ae2d457cf4fc7190 (patch) | |
tree | 8372060bfb5d7b75675ed1eda7b03ac0ff037081 /libqpdf/QPDF_Dictionary.cc | |
parent | 1496472e1c2f64f46d2d7d76481aef1aa3fff869 (diff) | |
download | qpdf-07bb5c3dd6213af9c9a64e17ae2d457cf4fc7190.tar.zst |
Overload QPDF_Null::create to take a child object description
Diffstat (limited to 'libqpdf/QPDF_Dictionary.cc')
-rw-r--r-- | libqpdf/QPDF_Dictionary.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libqpdf/QPDF_Dictionary.cc b/libqpdf/QPDF_Dictionary.cc index f45c00c6..43ad8a85 100644 --- a/libqpdf/QPDF_Dictionary.cc +++ b/libqpdf/QPDF_Dictionary.cc @@ -2,6 +2,7 @@ #include <qpdf/QPDFObject_private.hh> #include <qpdf/QPDF_Name.hh> +#include <qpdf/QPDF_Null.hh> using namespace std::literals; @@ -100,10 +101,8 @@ QPDF_Dictionary::getKey(std::string const& key) // May be a null object return item->second; } else { - auto null = QPDFObjectHandle::newNull(); static auto constexpr msg = " -> dictionary key $VD"sv; - null.getObj()->setChildDescription(shared_from_this(), msg, key); - return null; + return QPDF_Null::create(shared_from_this(), msg, key); } } |