From 60965d5f4d608bdccc2ffd4e8753e12cbbbd71d2 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sun, 21 May 2023 13:35:09 -0400 Subject: Rerun clang-format --- libqpdf/QPDFValue.cc | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'libqpdf/QPDFValue.cc') 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: -- cgit v1.2.3-54-g00ecf