aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-04-24 15:05:50 +0200
committerJay Berkenbilt <ejb@ql.org>2022-04-24 15:05:50 +0200
commit4925f0d18c5554bf96d8cb853b5a017e0d18fda2 (patch)
tree0be25169d5fe7b306b9a8b84bb8f300f96869342 /include
parent68e721981a1fe4f1398d811bb8ed99af0e100da8 (diff)
downloadqpdf-4925f0d18c5554bf96d8cb853b5a017e0d18fda2.tar.zst
Have dictionary/streams mutators take const& where possible
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDFObjectHandle.hh6
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