diff options
author | Jay Berkenbilt <jberkenbilt@users.noreply.github.com> | 2023-02-18 23:49:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-18 23:49:18 +0100 |
commit | b3cfa1010f95514a13590266dd50677445f74309 (patch) | |
tree | 68ff8d71c63d27d59d05b1b0d8ed503319463a91 /libqpdf/QPDF_Stream.cc | |
parent | e4e03e9ac10d8ea0c1a8ef8c78f0103068928822 (diff) | |
parent | 07bb5c3dd6213af9c9a64e17ae2d457cf4fc7190 (diff) | |
download | qpdf-b3cfa1010f95514a13590266dd50677445f74309.tar.zst |
Merge pull request #902 from m-holger/od
Refactor creation of object descriptions
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(); |