From 4be2f3604939de8589dd2206fdf3d1a85033f171 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sun, 24 Apr 2022 09:31:32 -0400 Subject: Deprecate replaceOrRemoveKey -- it's the same as replaceKey --- libqpdf/qpdf/QPDF_Dictionary.hh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'libqpdf/qpdf') diff --git a/libqpdf/qpdf/QPDF_Dictionary.hh b/libqpdf/qpdf/QPDF_Dictionary.hh index 42ee6cf9..3c42cc0e 100644 --- a/libqpdf/qpdf/QPDF_Dictionary.hh +++ b/libqpdf/qpdf/QPDF_Dictionary.hh @@ -27,12 +27,11 @@ class QPDF_Dictionary: public QPDFObject std::set getKeys(); std::map const& getAsMap() const; - // Replace value of key, adding it if it does not exist - void replaceKey(std::string const& key, QPDFObjectHandle const&); + // If value is null, remove key; otherwise, replace the value of + // key, adding it if it does not exist. + void replaceKey(std::string const& key, QPDFObjectHandle value); // Remove key, doing nothing if key does not exist void removeKey(std::string const& key); - // If object is null, remove key; otherwise, replace key - void replaceOrRemoveKey(std::string const& key, QPDFObjectHandle); protected: virtual void releaseResolved(); -- cgit v1.2.3-54-g00ecf