diff options
author | m-holger <m-holger@kubitscheck.org> | 2023-03-25 19:23:39 +0100 |
---|---|---|
committer | m-holger <m-holger@kubitscheck.org> | 2023-04-01 13:24:52 +0200 |
commit | ea5164938e77cb968003fe06f98b87f648319bbf (patch) | |
tree | b9efaeca90bf5a9de936be74b124819cfb915455 /libqpdf/qpdf/QPDF_Array.hh | |
parent | 9e30de80326ad88c155725c66e3d444232119deb (diff) | |
download | qpdf-ea5164938e77cb968003fe06f98b87f648319bbf.tar.zst |
Remove temporary OHArray
Diffstat (limited to 'libqpdf/qpdf/QPDF_Array.hh')
-rw-r--r-- | libqpdf/qpdf/QPDF_Array.hh | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libqpdf/qpdf/QPDF_Array.hh b/libqpdf/qpdf/QPDF_Array.hh index 00c7f59d..b52efeb6 100644 --- a/libqpdf/qpdf/QPDF_Array.hh +++ b/libqpdf/qpdf/QPDF_Array.hh @@ -3,9 +3,7 @@ #include <qpdf/QPDFValue.hh> -#include <qpdf/OHArray.hh> #include <qpdf/SparseOHArray.hh> -#include <list> #include <vector> class QPDF_Array: public QPDFValue @@ -17,7 +15,8 @@ class QPDF_Array: public QPDFValue static std::shared_ptr<QPDFObject> create(std::vector<std::shared_ptr<QPDFObject>>&& items, bool sparse); static std::shared_ptr<QPDFObject> create(SparseOHArray const& items); - static std::shared_ptr<QPDFObject> create(OHArray const& items); + static std::shared_ptr<QPDFObject> + create(std::vector<std::shared_ptr<QPDFObject>> const& items); virtual std::shared_ptr<QPDFObject> copy(bool shallow = false); virtual std::string unparse(); virtual JSON getJSON(int json_version); @@ -38,10 +37,10 @@ class QPDF_Array: public QPDFValue QPDF_Array(std::vector<QPDFObjectHandle> const& items); QPDF_Array(std::vector<std::shared_ptr<QPDFObject>>&& items, bool sparse); QPDF_Array(SparseOHArray const& items); - QPDF_Array(OHArray const& items); + QPDF_Array(std::vector<std::shared_ptr<QPDFObject>> const& items); bool sparse{false}; SparseOHArray sp_elements; - OHArray elements; + std::vector<std::shared_ptr<QPDFObject>> elements; }; #endif // QPDF_ARRAY_HH |