aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFObjectHandle.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-04-30 02:21:07 +0200
committerJay Berkenbilt <ejb@ql.org>2022-04-30 02:28:02 +0200
commitd8fdf632a979a7adb4a6423fd55ef1971fb06afd (patch)
tree5a736f66733a3b4fa52f5519e1877d4841d3a8a3 /libqpdf/QPDFObjectHandle.cc
parente80fad86e95af978ada2a6cc5c4b209a1f65f7c0 (diff)
downloadqpdf-d8fdf632a979a7adb4a6423fd55ef1971fb06afd.tar.zst
Use replaceKeyAndGet in a few places in existing code
Diffstat (limited to 'libqpdf/QPDFObjectHandle.cc')
-rw-r--r--libqpdf/QPDFObjectHandle.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/libqpdf/QPDFObjectHandle.cc b/libqpdf/QPDFObjectHandle.cc
index 68849f46..9bdf1a64 100644
--- a/libqpdf/QPDFObjectHandle.cc
+++ b/libqpdf/QPDFObjectHandle.cc
@@ -1172,8 +1172,7 @@ QPDFObjectHandle::mergeResources(
// subdictionaries just to get this shallow copy
// functionality.
QTC::TC("qpdf", "QPDFObjectHandle replace with copy");
- this_val = this_val.shallowCopy();
- replaceKey(rtype, this_val);
+ this_val = replaceKeyAndGet(rtype, this_val.shallowCopy());
}
std::map<QPDFObjGen, std::string> og_to_name;
std::set<std::string> rnames;