From 77e889495f7c513ba8677df5fe662f08053709eb Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sun, 3 Apr 2022 16:10:27 -0400 Subject: Update some code manually to get better formatting results Add comments to force line breaks, parenthesize function arguments that are contatenated strings, etc. -- these kinds of changes improve clang-format's results and also cause emacs cc-mode to match clang-format. After this type of change, most of the time, when clang-format and emacs disagree, clang-format is better. --- libqpdf/QPDFObjectHandle.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libqpdf/QPDFObjectHandle.cc') diff --git a/libqpdf/QPDFObjectHandle.cc b/libqpdf/QPDFObjectHandle.cc index dcd38c82..b142f432 100644 --- a/libqpdf/QPDFObjectHandle.cc +++ b/libqpdf/QPDFObjectHandle.cc @@ -257,8 +257,8 @@ QPDFObjectHandle::setObjectDescriptionFromInput( { object.setObjectDescription( context, - input->getName() + ", " + description + " at offset " + - QUtil::int_to_string(offset)); + (input->getName() + ", " + description + " at offset " + + QUtil::int_to_string(offset))); } bool @@ -1018,8 +1018,8 @@ QPDFObjectHandle::getKey(std::string const& key) if (this->obj->getDescription(qpdf, description)) { result.setObjectDescription( qpdf, - description + " -> null returned from getting key " + key + - " from non-Dictionary"); + (description + " -> null returned from getting key " + key + + " from non-Dictionary")); } } return result; -- cgit v1.2.3-70-g09d2