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/QPDFObjectHandle.cc | |
parent | e80fad86e95af978ada2a6cc5c4b209a1f65f7c0 (diff) | |
download | qpdf-d8fdf632a979a7adb4a6423fd55ef1971fb06afd.tar.zst |
Use replaceKeyAndGet in a few places in existing code
Diffstat (limited to 'libqpdf/QPDFObjectHandle.cc')
-rw-r--r-- | libqpdf/QPDFObjectHandle.cc | 3 |
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; |