From 4925f0d18c5554bf96d8cb853b5a017e0d18fda2 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sun, 24 Apr 2022 09:05:50 -0400 Subject: Have dictionary/streams mutators take const& where possible --- include/qpdf/QPDFObjectHandle.hh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') 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 -- cgit v1.2.3-70-g09d2