diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-04-24 15:31:32 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-04-24 15:31:32 +0200 |
commit | 4be2f3604939de8589dd2206fdf3d1a85033f171 (patch) | |
tree | e4a861e9e77bd3b56462f7c996cfec931f8b0b2f /include | |
parent | b8d0b0b6388db732fee0e9fb95af0884704bf423 (diff) | |
download | qpdf-4be2f3604939de8589dd2206fdf3d1a85033f171.tar.zst |
Deprecate replaceOrRemoveKey -- it's the same as replaceKey
Diffstat (limited to 'include')
-rw-r--r-- | include/qpdf/QPDFObjectHandle.hh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/qpdf/QPDFObjectHandle.hh b/include/qpdf/QPDFObjectHandle.hh index ffffe523..3beab3f5 100644 --- a/include/qpdf/QPDFObjectHandle.hh +++ b/include/qpdf/QPDFObjectHandle.hh @@ -1023,13 +1023,16 @@ class QPDFObjectHandle // Mutator methods for dictionary objects - // Replace value of key, adding it if it does not exist + // Replace value of key, adding it if it does not exist. If value + // is null, remove the key. QPDF_DLL - void replaceKey(std::string const& key, QPDFObjectHandle const&); + void replaceKey(std::string const& key, QPDFObjectHandle const& value); // Remove key, doing nothing if key does not exist QPDF_DLL void removeKey(std::string const& key); - // If the object is null, remove the key. Otherwise, replace it. + + // ABI: Remove in qpdf 12 + [[deprecated("use replaceKey -- it does the same thing")]] QPDF_DLL void replaceOrRemoveKey(std::string const& key, QPDFObjectHandle const&); |