aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/qpdf/QPDF_Array.hh
diff options
context:
space:
mode:
Diffstat (limited to 'libqpdf/qpdf/QPDF_Array.hh')
-rw-r--r--libqpdf/qpdf/QPDF_Array.hh7
1 files changed, 6 insertions, 1 deletions
diff --git a/libqpdf/qpdf/QPDF_Array.hh b/libqpdf/qpdf/QPDF_Array.hh
index 88397ba7..1c4227ba 100644
--- a/libqpdf/qpdf/QPDF_Array.hh
+++ b/libqpdf/qpdf/QPDF_Array.hh
@@ -3,6 +3,7 @@
#include <qpdf/QPDFValue.hh>
+#include <qpdf/OHArray.hh>
#include <qpdf/SparseOHArray.hh>
#include <list>
#include <vector>
@@ -16,6 +17,7 @@ class QPDF_Array: public QPDFValue
static std::shared_ptr<QPDFObject>
create(std::vector<std::shared_ptr<QPDFObject>>&& items);
static std::shared_ptr<QPDFObject> create(SparseOHArray const& items);
+ static std::shared_ptr<QPDFObject> create(OHArray const& items);
virtual std::shared_ptr<QPDFObject> copy(bool shallow = false);
virtual std::string unparse();
virtual JSON getJSON(int json_version);
@@ -36,7 +38,10 @@ class QPDF_Array: public QPDFValue
QPDF_Array(std::vector<QPDFObjectHandle> const& items);
QPDF_Array(std::vector<std::shared_ptr<QPDFObject>>&& items);
QPDF_Array(SparseOHArray const& items);
- SparseOHArray elements;
+ QPDF_Array(OHArray const& items);
+ bool sparse{false};
+ SparseOHArray sp_elements;
+ OHArray elements;
};
#endif // QPDF_ARRAY_HH