diff options
author | Jay Berkenbilt <ejb@ql.org> | 2023-05-21 19:35:09 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2023-05-21 19:35:09 +0200 |
commit | 60965d5f4d608bdccc2ffd4e8753e12cbbbd71d2 (patch) | |
tree | a707602da466c02ff1a54b3263c3a881cd7204a4 /libqpdf/QPDFValue.cc | |
parent | 6b077332d38c093de2618d5e1481b42222106065 (diff) | |
download | qpdf-60965d5f4d608bdccc2ffd4e8753e12cbbbd71d2.tar.zst |
Rerun clang-format
Diffstat (limited to 'libqpdf/QPDFValue.cc')
-rw-r--r-- | libqpdf/QPDFValue.cc | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/libqpdf/QPDFValue.cc b/libqpdf/QPDFValue.cc index 30d534dc..34412231 100644 --- a/libqpdf/QPDFValue.cc +++ b/libqpdf/QPDFValue.cc @@ -20,18 +20,15 @@ QPDFValue::getDescription() // Simple template string auto description = std::get<0>(*object_description); - if (auto pos = description.find("$OG"); - pos != std::string::npos) { + if (auto pos = description.find("$OG"); pos != std::string::npos) { description.replace(pos, 3, og.unparse(' ')); } - if (auto pos = description.find("$PO"); - pos != std::string::npos) { + if (auto pos = description.find("$PO"); pos != std::string::npos) { qpdf_offset_t shift = (type_code == ::ot_dictionary) ? 2 : (type_code == ::ot_array) ? 1 : 0; - description.replace( - pos, 3, std::to_string(parsed_offset + shift)); + description.replace(pos, 3, std::to_string(parsed_offset + shift)); } return description; } @@ -40,8 +37,7 @@ QPDFValue::getDescription() // QPDF::JSONReactor generated description auto j_descr = std::get<1>(*object_description); return ( - *j_descr.input + - (j_descr.object.empty() ? "" : ", " + j_descr.object) + + *j_descr.input + (j_descr.object.empty() ? "" : ", " + j_descr.object) + " at offset " + std::to_string(parsed_offset)); } case 2: |