aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDF_Array.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2019-08-18 04:27:55 +0200
committerJay Berkenbilt <ejb@ql.org>2019-08-18 05:02:41 +0200
commit5187a3ec85f1a83cbde9e77227e215a2dbcfccb0 (patch)
tree23c9f79d872a46da2a5eba3b4ba66939276c9a7f /libqpdf/QPDF_Array.cc
parentbf7c6a80705c2b913b63a84349e030f1d9dc8233 (diff)
downloadqpdf-5187a3ec85f1a83cbde9e77227e215a2dbcfccb0.tar.zst
Shallow copy arrays without removing sparseness
Diffstat (limited to 'libqpdf/QPDF_Array.cc')
-rw-r--r--libqpdf/QPDF_Array.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/libqpdf/QPDF_Array.cc b/libqpdf/QPDF_Array.cc
index 45635f8a..31cd2dbc 100644
--- a/libqpdf/QPDF_Array.cc
+++ b/libqpdf/QPDF_Array.cc
@@ -136,3 +136,9 @@ QPDF_Array::eraseItem(int at)
{
this->elements.erase(QIntC::to_size(at));
}
+
+SparseOHArray const&
+QPDF_Array::getElementsForShallowCopy() const
+{
+ return this->elements;
+}