From f0a8178091dfc87bbf9a6751f8fedf007e8eb144 Mon Sep 17 00:00:00 2001 From: m-holger Date: Thu, 16 Jun 2022 17:45:04 +0100 Subject: Refactor QPDFObject creation and cloning Move responsibility for creating shared pointers to objects and cloning from QPDFObjectHandle to QPDFObject. --- libqpdf/QPDF.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libqpdf/QPDF.cc') diff --git a/libqpdf/QPDF.cc b/libqpdf/QPDF.cc index b51c5571..9ad33376 100644 --- a/libqpdf/QPDF.cc +++ b/libqpdf/QPDF.cc @@ -1989,7 +1989,7 @@ QPDF::resolve(int objid, int generation) this->m->file->getLastOffset(), ("loop detected resolving object " + QUtil::int_to_string(objid) + " " + QUtil::int_to_string(generation))); - return std::shared_ptr(new QPDF_Null); + return QPDF_Null::create(); } ResolveRecorder rr(this, og); -- cgit v1.2.3-70-g09d2