aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/qpdf/QPDF_Dictionary.hh
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-04-24 15:31:32 +0200
committerJay Berkenbilt <ejb@ql.org>2022-04-24 15:31:32 +0200
commit4be2f3604939de8589dd2206fdf3d1a85033f171 (patch)
treee4a861e9e77bd3b56462f7c996cfec931f8b0b2f /libqpdf/qpdf/QPDF_Dictionary.hh
parentb8d0b0b6388db732fee0e9fb95af0884704bf423 (diff)
downloadqpdf-4be2f3604939de8589dd2206fdf3d1a85033f171.tar.zst
Deprecate replaceOrRemoveKey -- it's the same as replaceKey
Diffstat (limited to 'libqpdf/qpdf/QPDF_Dictionary.hh')
-rw-r--r--libqpdf/qpdf/QPDF_Dictionary.hh7
1 files changed, 3 insertions, 4 deletions
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<std::string> getKeys();
std::map<std::string, QPDFObjectHandle> 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();