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/QPDFJob.cc | |
parent | e80fad86e95af978ada2a6cc5c4b209a1f65f7c0 (diff) | |
download | qpdf-d8fdf632a979a7adb4a6423fd55ef1971fb06afd.tar.zst |
Use replaceKeyAndGet in a few places in existing code
Diffstat (limited to 'libqpdf/QPDFJob.cc')
-rw-r--r-- | libqpdf/QPDFJob.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libqpdf/QPDFJob.cc b/libqpdf/QPDFJob.cc index 692e6420..08b5b9d7 100644 --- a/libqpdf/QPDFJob.cc +++ b/libqpdf/QPDFJob.cc @@ -1958,8 +1958,8 @@ QPDFJob::doUnderOverlayForPage( QPDFObjectHandle resources = dest_page.getAttribute("/Resources", true); if (!resources.isDictionary()) { QTC::TC("qpdf", "QPDFJob overlay page with no resources"); - resources = QPDFObjectHandle::newDictionary(); - dest_page.getObjectHandle().replaceKey("/Resources", resources); + resources = dest_page.getObjectHandle().replaceKeyAndGet( + "/Resources", QPDFObjectHandle::newDictionary()); } for (std::vector<int>::iterator iter = pagenos[pageno].begin(); iter != pagenos[pageno].end(); |