diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-04-30 02:21:07 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-04-30 02:28:02 +0200 |
commit | d8fdf632a979a7adb4a6423fd55ef1971fb06afd (patch) | |
tree | 5a736f66733a3b4fa52f5519e1877d4841d3a8a3 /libqpdf/QPDFEFStreamObjectHelper.cc | |
parent | e80fad86e95af978ada2a6cc5c4b209a1f65f7c0 (diff) | |
download | qpdf-d8fdf632a979a7adb4a6423fd55ef1971fb06afd.tar.zst |
Use replaceKeyAndGet in a few places in existing code
Diffstat (limited to 'libqpdf/QPDFEFStreamObjectHelper.cc')
-rw-r--r-- | libqpdf/QPDFEFStreamObjectHelper.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libqpdf/QPDFEFStreamObjectHelper.cc b/libqpdf/QPDFEFStreamObjectHelper.cc index fe27a86e..5810cf37 100644 --- a/libqpdf/QPDFEFStreamObjectHelper.cc +++ b/libqpdf/QPDFEFStreamObjectHelper.cc @@ -28,8 +28,8 @@ QPDFEFStreamObjectHelper::setParam( { auto params = this->oh.getDict().getKey("/Params"); if (!params.isDictionary()) { - params = QPDFObjectHandle::newDictionary(); - this->oh.getDict().replaceKey("/Params", params); + params = this->oh.getDict().replaceKeyAndGet( + "/Params", QPDFObjectHandle::newDictionary()); } params.replaceKey(pkey, pval); } |