diff options
author | m-holger <m-holger@kubitscheck.org> | 2023-02-15 11:11:38 +0100 |
---|---|---|
committer | m-holger <m-holger@kubitscheck.org> | 2023-02-18 09:33:08 +0100 |
commit | 32907fc14c663e95df0f7c62905b82389c0024a2 (patch) | |
tree | 9e32a7905a436453d5d1920446006d2d4bea2426 /libqpdf/QPDF_Stream.cc | |
parent | d58ec90310c93653ab42bcb7373a38e3f8d43362 (diff) | |
download | qpdf-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/QPDF_Stream.cc')
-rw-r--r-- | libqpdf/QPDF_Stream.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libqpdf/QPDF_Stream.cc b/libqpdf/QPDF_Stream.cc index 66916c21..8e2e16c5 100644 --- a/libqpdf/QPDF_Stream.cc +++ b/libqpdf/QPDF_Stream.cc @@ -123,7 +123,7 @@ QPDF_Stream::QPDF_Stream( throw std::logic_error("stream object instantiated with non-dictionary " "object for dictionary"); } - auto descr = std::make_shared<std::string>( + auto descr = std::make_shared<QPDFValue::Description>( qpdf->getFilename() + ", stream object " + og.unparse(' ')); setDescription(qpdf, descr, offset); } @@ -283,7 +283,9 @@ QPDF_Stream::getStreamJSON( void QPDF_Stream::setDescription( - QPDF* qpdf, std::shared_ptr<std::string>& description, qpdf_offset_t offset) + QPDF* qpdf, + std::shared_ptr<QPDFValue::Description>& description, + qpdf_offset_t offset) { this->QPDFValue::setDescription(qpdf, description, offset); setDictDescription(); |