diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-05-18 00:28:50 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-05-20 15:16:25 +0200 |
commit | 56f1b411feeb58b55e92ee77daffaa49c51b7dad (patch) | |
tree | 4337c0ada5ccc979f89af9aecf0873c087329c05 /ChangeLog | |
parent | 7e7a9c437982b7ede2af9cd0b12b3e47b4bc3a3d (diff) | |
download | qpdf-56f1b411feeb58b55e92ee77daffaa49c51b7dad.tar.zst |
Back out fluent QPDFObjectHandle methods. Keep the andGet methods.
I decided these were confusing and inconsistent with how JSON works.
They muddle the API rather than improving it.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 15 |
1 files changed, 6 insertions, 9 deletions
@@ -86,15 +86,12 @@ 2022-04-29 Jay Berkenbilt <ejb@ql.org> * QPDFObjectHandle: for the methods insertItem, appendItem, - eraseItem, replaceKey, and removeKey, have the methods return a - reference to the original object, making a fluent interface to - initializing or modifying QPDFObjectHandle possible. Also, for - each one, 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. + 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> |