aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDF.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2021-01-25 14:05:43 +0100
committerJay Berkenbilt <ejb@ql.org>2021-01-26 15:12:23 +0100
commit8ed3e8c79b5cbccfeccee865e555b68025ee2c1f (patch)
tree159063cdb1773605254e0436365d4eeb137282ff /libqpdf/QPDF.cc
parente7e20772ed29f3eb9756b31fe0bd9bc29a445891 (diff)
downloadqpdf-8ed3e8c79b5cbccfeccee865e555b68025ee2c1f.tar.zst
NNTree: rework iterators to be more memory efficient
Keep a std::pair internal to the iterators so that operator* can return a reference and operator-> can work, and each can work without copying pairs of objects around.
Diffstat (limited to 'libqpdf/QPDF.cc')
-rw-r--r--libqpdf/QPDF.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libqpdf/QPDF.cc b/libqpdf/QPDF.cc
index bb9b511d..f690d30a 100644
--- a/libqpdf/QPDF.cc
+++ b/libqpdf/QPDF.cc
@@ -3011,7 +3011,7 @@ QPDF::findAttachmentStreams()
return;
}
QPDFNameTreeObjectHelper ef_tree(embedded_files, *this);
- for (auto i: ef_tree)
+ for (auto const& i: ef_tree)
{
QPDFObjectHandle item = i.second;
if (item.isDictionary() &&