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 --- libqpdf/QPDF_Dictionary.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libqpdf/QPDF_Dictionary.cc') diff --git a/libqpdf/QPDF_Dictionary.cc b/libqpdf/QPDF_Dictionary.cc index 599f7224..1655f53a 100644 --- a/libqpdf/QPDF_Dictionary.cc +++ b/libqpdf/QPDF_Dictionary.cc @@ -115,7 +115,8 @@ QPDF_Dictionary::getAsMap() const } void -QPDF_Dictionary::replaceKey(std::string const& key, QPDFObjectHandle value) +QPDF_Dictionary::replaceKey( + std::string const& key, QPDFObjectHandle const& value) { // add or replace value this->items[key] = value; -- cgit v1.2.3-54-g00ecf