From 56f1b411feeb58b55e92ee77daffaa49c51b7dad Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Tue, 17 May 2022 18:28:50 -0400 Subject: 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. --- ChangeLog | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index a194440a..41c4671b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -86,15 +86,12 @@ 2022-04-29 Jay Berkenbilt * 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 -- cgit v1.2.3-54-g00ecf