aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf
diff options
context:
space:
mode:
Diffstat (limited to 'libqpdf')
-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);