aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFObjectHandle.cc
diff options
context:
space:
mode:
authorm-holger <m-holger@kubitscheck.org>2023-02-15 11:11:38 +0100
committerm-holger <m-holger@kubitscheck.org>2023-02-18 09:33:08 +0100
commit32907fc14c663e95df0f7c62905b82389c0024a2 (patch)
tree9e32a7905a436453d5d1920446006d2d4bea2426 /libqpdf/QPDFObjectHandle.cc
parentd58ec90310c93653ab42bcb7373a38e3f8d43362 (diff)
downloadqpdf-32907fc14c663e95df0f7c62905b82389c0024a2.tar.zst
Change type of QPDFValue::object_description to std::shared_ptr<std::variant>
Also, name the type QPDFValue::Description.
Diffstat (limited to 'libqpdf/QPDFObjectHandle.cc')
-rw-r--r--libqpdf/QPDFObjectHandle.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/libqpdf/QPDFObjectHandle.cc b/libqpdf/QPDFObjectHandle.cc
index 2b2ca5db..7a37ffc2 100644
--- a/libqpdf/QPDFObjectHandle.cc
+++ b/libqpdf/QPDFObjectHandle.cc
@@ -2176,7 +2176,8 @@ QPDFObjectHandle::setObjectDescription(
// This is called during parsing on newly created direct objects,
// so we can't call dereference() here.
if (isInitialized() && obj.get()) {
- auto descr = std::make_shared<std::string>(object_description);
+ auto descr =
+ std::make_shared<QPDFValue::Description>(object_description);
obj->setDescription(owning_qpdf, descr);
}
}