aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDF_Dictionary.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libqpdf/QPDF_Dictionary.cc')
-rw-r--r--libqpdf/QPDF_Dictionary.cc8
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;
}