diff options
author | m-holger <m-holger@kubitscheck.org> | 2022-12-31 13:13:32 +0100 |
---|---|---|
committer | Jay Berkenbilt <jberkenbilt@users.noreply.github.com> | 2022-12-31 16:23:59 +0100 |
commit | ec35156ab0fef078600e6d3551178adf73b87b3b (patch) | |
tree | f3930f65bec2aee82d8082724dd1b6b6bf68bb27 /libqpdf/QPDF_Dictionary.cc | |
parent | 0ef2def8ad1f280adc34825b1588d9811d9ac031 (diff) | |
download | qpdf-ec35156ab0fef078600e6d3551178adf73b87b3b.tar.zst |
Refactor QPDFValue::getDescription
Remove parameters and return the description.
Diffstat (limited to 'libqpdf/QPDF_Dictionary.cc')
-rw-r--r-- | libqpdf/QPDF_Dictionary.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/libqpdf/QPDF_Dictionary.cc b/libqpdf/QPDF_Dictionary.cc index 1df4f8f0..87d93a32 100644 --- a/libqpdf/QPDF_Dictionary.cc +++ b/libqpdf/QPDF_Dictionary.cc @@ -84,12 +84,10 @@ QPDF_Dictionary::getKey(std::string const& key) // May be a null object return item->second; } else { - QPDFObjectHandle null = QPDFObjectHandle::newNull(); - QPDF* qpdf = nullptr; - std::string description; - if (getDescription(qpdf, description)) { + auto null = QPDFObjectHandle::newNull(); + if (qpdf != nullptr) { null.setObjectDescription( - qpdf, description + " -> dictionary key " + key); + qpdf, getDescription() + " -> dictionary key " + key); } return null; } |