aboutsummaryrefslogtreecommitdiffstats
path: root/ChangeLog
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 /ChangeLog
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 'ChangeLog')
-rw-r--r--ChangeLog19
1 files changed, 9 insertions, 10 deletions
diff --git a/ChangeLog b/ChangeLog
index 1fddfe4f..612c359d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
2022-07-24 Jay Berkenbilt <ejb@ql.org>
+ * QPDFObjectHandle: for the methods insertItem, appendItem,
+ eraseItem, replaceKey, and removeKey, add a corresponding
+ "AndGetNew" and/or "AndGetOld" methods. The ones that end with
+ "AndGetNew" return the newly added item. The ones that end with
+ "AndGetOld" return the old value. The AndGetNew methods make it
+ possible to create a new object, add it to an array or dictionary,
+ and get a handle to it all in one line. The AndGetOld methods make
+ it easier to retrieve an old value when removing or replacing it.
+
* Thanks to m-holger for doing significant cleanup of private APIs
and internals around QPDFObjGen and for significantly improving
the performance of QPDFObjGen -- See #731. This includes a few
@@ -168,16 +177,6 @@
128-bit without AES) an error rather than a warning when
--allow-weak-crypto is not specified. Fixes #576.
-2022-04-29 Jay Berkenbilt <ejb@ql.org>
-
- * QPDFObjectHandle: for the methods insertItem, appendItem,
- eraseItem, replaceKey, and removeKey, add a corresponding "AndGet"
- method (insertItemAndGet, appendItemAndGet, eraseItemAndGet,
- replaceKeyAndGet, and removeKeyAndGet) that returns the newly
- inserted, replaced, or removed item. This makes it possible to
- create a new object, add it to an array or dictionary, and get a
- handle to it all in one line.
-
2022-04-24 Jay Berkenbilt <ejb@ql.org>
* Bug fix: "removeAttachment" in the job JSON now takes an array