aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/NNTree.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-04-30 02:41:16 +0200
committerJay Berkenbilt <ejb@ql.org>2022-04-30 16:54:16 +0200
commit2878c186bf6828589d220d5b19388934514d08a7 (patch)
treeb780c20dcbb553e612806ea754aefaff3d002fe4 /libqpdf/NNTree.cc
parentab9d557cb051b3568add22790cc58143c823e8df (diff)
downloadqpdf-2878c186bf6828589d220d5b19388934514d08a7.tar.zst
Use fluent appendItem
Diffstat (limited to 'libqpdf/NNTree.cc')
-rw-r--r--libqpdf/NNTree.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/libqpdf/NNTree.cc b/libqpdf/NNTree.cc
index a888f42f..3ab18190 100644
--- a/libqpdf/NNTree.cc
+++ b/libqpdf/NNTree.cc
@@ -208,9 +208,8 @@ NNTreeIterator::resetLimits(
}
}
if (first.isInitialized() && last.isInitialized()) {
- auto limits = QPDFObjectHandle::newArray();
- limits.appendItem(first);
- limits.appendItem(last);
+ auto limits =
+ QPDFObjectHandle::newArray().appendItem(first).appendItem(last);
auto olimits = node.getKey("/Limits");
if (olimits.isArray() && (olimits.getArrayNItems() == 2)) {
auto ofirst = olimits.getArrayItem(0);