diff options
author | m-holger <m-holger@kubitscheck.org> | 2022-12-10 20:05:12 +0100 |
---|---|---|
committer | m-holger <m-holger@kubitscheck.org> | 2023-04-01 14:55:14 +0200 |
commit | cedb37caa153abfd92a91b2e39a6f32601be826c (patch) | |
tree | f0cbde79ce5b02c975087ff64a91ea062109b147 /libqpdf/SparseOHArray.cc | |
parent | c6179da9615057a14e74180f640e2e77fdcbf234 (diff) | |
download | qpdf-cedb37caa153abfd92a91b2e39a6f32601be826c.tar.zst |
Refactor QPDF_Array::appendItem and rename to push_back
Diffstat (limited to 'libqpdf/SparseOHArray.cc')
-rw-r--r-- | libqpdf/SparseOHArray.cc | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/libqpdf/SparseOHArray.cc b/libqpdf/SparseOHArray.cc index c82bf145..48716deb 100644 --- a/libqpdf/SparseOHArray.cc +++ b/libqpdf/SparseOHArray.cc @@ -4,24 +4,6 @@ static const QPDFObjectHandle null_oh = QPDFObjectHandle::newNull(); -void -SparseOHArray::append(QPDFObjectHandle oh) -{ - if (!oh.isDirectNull()) { - this->elements[this->n_elements] = oh.getObj(); - } - ++this->n_elements; -} - -void -SparseOHArray::append(std::shared_ptr<QPDFObject>&& obj) -{ - if (obj->getTypeCode() != ::ot_null || !obj->getObjGen().isIndirect()) { - this->elements[this->n_elements] = std::move(obj); - } - ++this->n_elements; -} - QPDFObjectHandle SparseOHArray::at(int idx) const { |