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/QPDFObject.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/QPDFObject.cc')
-rw-r--r-- | libqpdf/QPDFObject.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libqpdf/QPDFObject.cc b/libqpdf/QPDFObject.cc index 39eb01a2..39a5fa50 100644 --- a/libqpdf/QPDFObject.cc +++ b/libqpdf/QPDFObject.cc @@ -6,6 +6,13 @@ QPDFObject::QPDFObject() : { } +std::shared_ptr<QPDFObject> +QPDFObject::do_create(QPDFObject* object) +{ + std::shared_ptr<QPDFObject> obj(object); + return obj; +} + void QPDFObject::setDescription(QPDF* qpdf, std::string const& description) { |