aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFEFStreamObjectHelper.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-07-24 21:42:23 +0200
committerJay Berkenbilt <ejb@ql.org>2022-07-24 21:42:23 +0200
commitb3e6d445cbf73da2b00062c3f639c2453041ee41 (patch)
treecf14f19721b0c555daa86371d93b069ce26c8013 /libqpdf/QPDFEFStreamObjectHelper.cc
parent3661f2749a07ebd3733dca944a4ee990b658d864 (diff)
downloadqpdf-b3e6d445cbf73da2b00062c3f639c2453041ee41.tar.zst
Tweak "AndGet" mutator functions again
Remove any ambiguity around whether old or new value is being returned.
Diffstat (limited to 'libqpdf/QPDFEFStreamObjectHelper.cc')
-rw-r--r--libqpdf/QPDFEFStreamObjectHelper.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libqpdf/QPDFEFStreamObjectHelper.cc b/libqpdf/QPDFEFStreamObjectHelper.cc
index cbfe47a3..8380206d 100644
--- a/libqpdf/QPDFEFStreamObjectHelper.cc
+++ b/libqpdf/QPDFEFStreamObjectHelper.cc
@@ -28,7 +28,7 @@ QPDFEFStreamObjectHelper::setParam(
{
auto params = this->oh.getDict().getKey("/Params");
if (!params.isDictionary()) {
- params = this->oh.getDict().replaceKeyAndGet(
+ params = this->oh.getDict().replaceKeyAndGetNew(
"/Params", QPDFObjectHandle::newDictionary());
}
params.replaceKey(pkey, pval);