aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/qpdf/QPDF_Array.hh
diff options
context:
space:
mode:
authorm-holger <m-holger@kubitscheck.org>2022-12-19 12:41:09 +0100
committerJay Berkenbilt <jberkenbilt@users.noreply.github.com>2022-12-31 20:37:35 +0100
commit9da50ca3601ee58c2ccceaa5d430b56a1ab27306 (patch)
tree7518877907dfd1c2e43cad161b04b6fcdac272b5 /libqpdf/qpdf/QPDF_Array.hh
parente91e642cf35a704866f1dabd89d9a987a309bcc2 (diff)
downloadqpdf-9da50ca3601ee58c2ccceaa5d430b56a1ab27306.tar.zst
Change olist variable in QPDFParser::parse to vector<shared_ptr<QPDFObject>>
Diffstat (limited to 'libqpdf/qpdf/QPDF_Array.hh')
-rw-r--r--libqpdf/qpdf/QPDF_Array.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/libqpdf/qpdf/QPDF_Array.hh b/libqpdf/qpdf/QPDF_Array.hh
index 0bf3d436..56c0101f 100644
--- a/libqpdf/qpdf/QPDF_Array.hh
+++ b/libqpdf/qpdf/QPDF_Array.hh
@@ -13,6 +13,8 @@ class QPDF_Array: public QPDFValue
virtual ~QPDF_Array() = default;
static std::shared_ptr<QPDFObject>
create(std::vector<QPDFObjectHandle> const& items);
+ static std::shared_ptr<QPDFObject>
+ create(std::vector<std::shared_ptr<QPDFObject>>&& items);
static std::shared_ptr<QPDFObject> create(SparseOHArray const& items);
virtual std::shared_ptr<QPDFObject> copy(bool shallow = false);
virtual std::string unparse();
@@ -25,6 +27,7 @@ class QPDF_Array: public QPDFValue
void setItem(int, QPDFObjectHandle const&);
void setFromVector(std::vector<QPDFObjectHandle> const& items);
+ void setFromVector(std::vector<std::shared_ptr<QPDFObject>>&& items);
void insertItem(int at, QPDFObjectHandle const& item);
void appendItem(QPDFObjectHandle const& item);
void eraseItem(int at);
@@ -36,6 +39,7 @@ class QPDF_Array: public QPDFValue
private:
QPDF_Array(std::vector<QPDFObjectHandle> const& items);
+ QPDF_Array(std::vector<std::shared_ptr<QPDFObject>>&& items);
QPDF_Array(SparseOHArray const& items);
SparseOHArray elements;
};