diff options
author | m-holger <m-holger@kubitscheck.org> | 2022-12-15 10:56:46 +0100 |
---|---|---|
committer | Jay Berkenbilt <jberkenbilt@users.noreply.github.com> | 2022-12-31 16:23:59 +0100 |
commit | d03ca88275e5f5d83701502f9ab29de833e772db (patch) | |
tree | b4fb25e1c21a3b7c6f747a3264c6d569fd9be11f /libqpdf/qpdf/QPDFValue.hh | |
parent | dab48544d23737079cdebe514e3df4aa6d4792e9 (diff) | |
download | qpdf-d03ca88275e5f5d83701502f9ab29de833e772db.tar.zst |
Refactor QPDFParser::setDescriptionFromInput and rename to setDescription
Set parsed offset at the same time as setting description.
Diffstat (limited to 'libqpdf/qpdf/QPDFValue.hh')
-rw-r--r-- | libqpdf/qpdf/QPDFValue.hh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libqpdf/qpdf/QPDFValue.hh b/libqpdf/qpdf/QPDFValue.hh index da80e37f..9a0e8cba 100644 --- a/libqpdf/qpdf/QPDFValue.hh +++ b/libqpdf/qpdf/QPDFValue.hh @@ -24,10 +24,12 @@ class QPDFValue virtual std::string unparse() = 0; virtual JSON getJSON(int json_version) = 0; virtual void - setDescription(QPDF* qpdf_p, std::string const& description) + setDescription( + QPDF* qpdf_p, std::string const& description, qpdf_offset_t offset) { qpdf = qpdf_p; object_description = description; + setParsedOffset(offset); } bool getDescription(QPDF*& qpdf_p, std::string& description) |