From 07bb5c3dd6213af9c9a64e17ae2d457cf4fc7190 Mon Sep 17 00:00:00 2001 From: m-holger Date: Fri, 17 Feb 2023 14:59:33 +0000 Subject: Overload QPDF_Null::create to take a child object description --- libqpdf/QPDF_Dictionary.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'libqpdf/QPDF_Dictionary.cc') 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 #include +#include 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); } } -- cgit v1.2.3-70-g09d2