diff options
author | m-holger <m-holger@kubitscheck.org> | 2023-02-09 13:43:56 +0100 |
---|---|---|
committer | m-holger <m-holger@kubitscheck.org> | 2023-02-18 09:33:08 +0100 |
commit | dab27c9bb35c26e30e22f2e53299ee9566cadefd (patch) | |
tree | d9a0c711329c495442c26e0ca2697847cdf2feeb /libqpdf/QPDFValue.cc | |
parent | fe74f28dc4f269e4bf944ae61d77874f81f95daf (diff) | |
download | qpdf-dab27c9bb35c26e30e22f2e53299ee9566cadefd.tar.zst |
Refactor setting of object descriptions in QPDF::JSONReactor
Diffstat (limited to 'libqpdf/QPDFValue.cc')
-rw-r--r-- | libqpdf/QPDFValue.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libqpdf/QPDFValue.cc b/libqpdf/QPDFValue.cc index 41a00fa8..a89afd55 100644 --- a/libqpdf/QPDFValue.cc +++ b/libqpdf/QPDFValue.cc @@ -34,6 +34,14 @@ QPDFValue::getDescription() } return description; } + case 1: + { + auto j_descr = std::get<1>(*object_description); + return ( + *j_descr.input + + (j_descr.object.empty() ? "" : ", " + j_descr.object) + + " at offset " + std::to_string(parsed_offset)); + } } } else if (og.isIndirect()) { return "object " + og.unparse(' '); |