diff options
author | m-holger <m-holger@kubitscheck.org> | 2022-06-16 18:45:04 +0200 |
---|---|---|
committer | Jay Berkenbilt <jberkenbilt@users.noreply.github.com> | 2022-06-27 18:47:02 +0200 |
commit | f0a8178091dfc87bbf9a6751f8fedf007e8eb144 (patch) | |
tree | 9a4b3af6d96a274016f0feecbc5deecb345c5f4f /libqpdf/QPDF.cc | |
parent | 5aa8225f493dc3c3171662fecc8a9ff5d0a16feb (diff) | |
download | qpdf-f0a8178091dfc87bbf9a6751f8fedf007e8eb144.tar.zst |
Refactor QPDFObject creation and cloning
Move responsibility for creating shared pointers to objects and cloning from QPDFObjectHandle to QPDFObject.
Diffstat (limited to 'libqpdf/QPDF.cc')
-rw-r--r-- | libqpdf/QPDF.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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<QPDFObject>(new QPDF_Null); + return QPDF_Null::create(); } ResolveRecorder rr(this, og); |