aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/SparseOHArray.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2020-04-10 16:07:23 +0200
committerJay Berkenbilt <ejb@ql.org>2020-04-10 19:30:33 +0200
commit578c5ac66c80cd1bfb43206dbba091a3985bb4bc (patch)
tree11220d51e5f647689d84ce347573d51f9640ac9f /libqpdf/SparseOHArray.cc
parent821a70185135df50a28ad92733f82fbe5b562556 (diff)
downloadqpdf-578c5ac66c80cd1bfb43206dbba091a3985bb4bc.tar.zst
Use more references when iterating
When possible, use `for (auto&` or `for (auto const&` when iterating using C++-11 style iterators.
Diffstat (limited to 'libqpdf/SparseOHArray.cc')
-rw-r--r--libqpdf/SparseOHArray.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libqpdf/SparseOHArray.cc b/libqpdf/SparseOHArray.cc
index c8aaefa8..972376b1 100644
--- a/libqpdf/SparseOHArray.cc
+++ b/libqpdf/SparseOHArray.cc
@@ -57,7 +57,7 @@ SparseOHArray::remove_last()
void
SparseOHArray::releaseResolved()
{
- for (auto iter: this->elements)
+ for (auto& iter: this->elements)
{
QPDFObjectHandle::ReleaseResolver::releaseResolved(iter.second);
}