diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-04-24 15:05:50 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-04-24 15:05:50 +0200 |
commit | 4925f0d18c5554bf96d8cb853b5a017e0d18fda2 (patch) | |
tree | 0be25169d5fe7b306b9a8b84bb8f300f96869342 /include | |
parent | 68e721981a1fe4f1398d811bb8ed99af0e100da8 (diff) | |
download | qpdf-4925f0d18c5554bf96d8cb853b5a017e0d18fda2.tar.zst |
Have dictionary/streams mutators take const& where possible
Diffstat (limited to 'include')
-rw-r--r-- | include/qpdf/QPDFObjectHandle.hh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/qpdf/QPDFObjectHandle.hh b/include/qpdf/QPDFObjectHandle.hh index 5b2a6764..ffffe523 100644 --- a/include/qpdf/QPDFObjectHandle.hh +++ b/include/qpdf/QPDFObjectHandle.hh @@ -1025,13 +1025,13 @@ class QPDFObjectHandle // Replace value of key, adding it if it does not exist QPDF_DLL - void replaceKey(std::string const& key, QPDFObjectHandle); + void replaceKey(std::string const& key, QPDFObjectHandle const&); // 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. QPDF_DLL - void replaceOrRemoveKey(std::string const& key, QPDFObjectHandle); + void replaceOrRemoveKey(std::string const& key, QPDFObjectHandle const&); // Methods for stream objects QPDF_DLL @@ -1164,7 +1164,7 @@ class QPDFObjectHandle // may be more convenient in this case than calling getDict and // modifying it for each key. The pdf-create example does this. QPDF_DLL - void replaceDict(QPDFObjectHandle); + void replaceDict(QPDFObjectHandle const&); // Replace this stream's stream data with the given data buffer, // and replace the /Filter and /DecodeParms keys in the stream |