diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-04-30 02:41:16 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-04-30 16:54:16 +0200 |
commit | 2878c186bf6828589d220d5b19388934514d08a7 (patch) | |
tree | b780c20dcbb553e612806ea754aefaff3d002fe4 /libqpdf | |
parent | ab9d557cb051b3568add22790cc58143c823e8df (diff) | |
download | qpdf-2878c186bf6828589d220d5b19388934514d08a7.tar.zst |
Use fluent appendItem
Diffstat (limited to 'libqpdf')
-rw-r--r-- | libqpdf/NNTree.cc | 5 |
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); |