summaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFJob.cc
diff options
context:
space:
mode:
authorm-holger <m-holger@kubitscheck.org>2023-06-01 17:16:21 +0200
committerm-holger <m-holger@kubitscheck.org>2023-06-09 16:55:49 +0200
commitd784e8033c0aafce9becf720dfedf1872c74983e (patch)
tree1c7cbabef8eebf0899d2f98986792e855724cf9b /libqpdf/QPDFJob.cc
parent0ac005f0d96b427d1ddc92af5805aa05bfe86aca (diff)
downloadqpdf-d784e8033c0aafce9becf720dfedf1872c74983e.tar.zst
Code tidy - Clang-Tidy rule performance-for-range-copy
Diffstat (limited to 'libqpdf/QPDFJob.cc')
-rw-r--r--libqpdf/QPDFJob.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libqpdf/QPDFJob.cc b/libqpdf/QPDFJob.cc
index c33c4b70..3f3bcbb1 100644
--- a/libqpdf/QPDFJob.cc
+++ b/libqpdf/QPDFJob.cc
@@ -894,7 +894,7 @@ QPDFJob::doListAttachments(QPDF& pdf)
v << " " << i2.first << " -> " << i2.second << "\n";
}
v << " all data streams:\n";
- for (auto i2: efoh->getEmbeddedFileStreams().ditems()) {
+ for (auto const& i2: efoh->getEmbeddedFileStreams().ditems()) {
auto efs = QPDFEFStreamObjectHelper(i2.second);
v << " " << i2.first << " -> "
<< efs.getObjectHandle().getObjGen().unparse(',') << "\n";
@@ -1329,7 +1329,7 @@ QPDFJob::doJSONAttachments(Pipeline* p, bool& first, QPDF& pdf)
j_names.addDictionaryMember(i2.first, JSON::makeString(i2.second));
}
auto j_streams = j_details.addDictionaryMember("streams", JSON::makeDictionary());
- for (auto i2: fsoh->getEmbeddedFileStreams().ditems()) {
+ for (auto const& i2: fsoh->getEmbeddedFileStreams().ditems()) {
auto efs = QPDFEFStreamObjectHelper(i2.second);
auto j_stream = j_streams.addDictionaryMember(i2.first, JSON::makeDictionary());
j_stream.addDictionaryMember(