aboutsummaryrefslogtreecommitdiffstats
path: root/libtests
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-04-30 02:39:54 +0200
committerJay Berkenbilt <ejb@ql.org>2022-04-30 02:39:54 +0200
commitab9d557cb051b3568add22790cc58143c823e8df (patch)
treee594455ab528c90ceb95b05ecda17ea1495cd247 /libtests
parentd8fdf632a979a7adb4a6423fd55ef1971fb06afd (diff)
downloadqpdf-ab9d557cb051b3568add22790cc58143c823e8df.tar.zst
Use fluent replaceKey
Diffstat (limited to 'libtests')
-rw-r--r--libtests/nntree.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/libtests/nntree.cc b/libtests/nntree.cc
index 4a874578..31b1bd42 100644
--- a/libtests/nntree.cc
+++ b/libtests/nntree.cc
@@ -70,8 +70,7 @@ test_bsearch()
limits.appendItem(QPDFObjectHandle::newInteger(v.at(0)));
limits.appendItem(QPDFObjectHandle::newInteger(v.at(v.size() - 1)));
auto node = q.makeIndirectObject(QPDFObjectHandle::newDictionary());
- node.replaceKey("/Nums", nums);
- node.replaceKey("/Limits", limits);
+ node.replaceKey("/Nums", nums).replaceKey("/Limits", limits);
return node;
};