diff options
author | Jay Berkenbilt <ejb@ql.org> | 2019-08-18 04:28:19 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2019-08-18 15:00:40 +0200 |
commit | 522d2b2227cbc8edc1b7404f2e3980a28d216988 (patch) | |
tree | e41408f860be3d0ae1c7fd4e6d632af914d60924 /libqpdf/qpdf/QPDF_Array.hh | |
parent | 5187a3ec85f1a83cbde9e77227e215a2dbcfccb0 (diff) | |
download | qpdf-522d2b2227cbc8edc1b7404f2e3980a28d216988.tar.zst |
Improve efficiency of fixDanglingReferences
Diffstat (limited to 'libqpdf/qpdf/QPDF_Array.hh')
-rw-r--r-- | libqpdf/qpdf/QPDF_Array.hh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libqpdf/qpdf/QPDF_Array.hh b/libqpdf/qpdf/QPDF_Array.hh index eb0b594b..7ea111a9 100644 --- a/libqpdf/qpdf/QPDF_Array.hh +++ b/libqpdf/qpdf/QPDF_Array.hh @@ -4,6 +4,7 @@ #include <qpdf/QPDFObject.hh> #include <vector> +#include <list> #include <qpdf/SparseOHArray.hh> class QPDF_Array: public QPDFObject @@ -28,7 +29,11 @@ class QPDF_Array: public QPDFObject void appendItem(QPDFObjectHandle const& item); void eraseItem(int at); + // Helper methods for QPDF and QPDFObjectHandle -- these are + // public methods since the whole class is not part of the public + // API. Otherwise, these would be wrapped in accessor classes. SparseOHArray const& getElementsForShallowCopy() const; + void addExplicitElementsToList(std::list<QPDFObjectHandle>&) const; protected: virtual void releaseResolved(); |