diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-04-03 22:10:27 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-04-05 20:56:19 +0200 |
commit | 77e889495f7c513ba8677df5fe662f08053709eb (patch) | |
tree | 06191e152c3d7a4e398837ebc4f87038b1797bc9 /libqpdf/FileInputSource.cc | |
parent | 12f1eb15ca3fed6310402847559a7c99d3c77847 (diff) | |
download | qpdf-77e889495f7c513ba8677df5fe662f08053709eb.tar.zst |
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.
Diffstat (limited to 'libqpdf/FileInputSource.cc')
-rw-r--r-- | libqpdf/FileInputSource.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libqpdf/FileInputSource.cc b/libqpdf/FileInputSource.cc index 26ce20e6..4b36ea0c 100644 --- a/libqpdf/FileInputSource.cc +++ b/libqpdf/FileInputSource.cc @@ -96,9 +96,9 @@ void FileInputSource::seek(qpdf_offset_t offset, int whence) { QUtil::os_wrapper( - std::string("seek to ") + this->m->filename + ", offset " + - QUtil::int_to_string(offset) + " (" + QUtil::int_to_string(whence) + - ")", + (std::string("seek to ") + this->m->filename + ", offset " + + QUtil::int_to_string(offset) + " (" + QUtil::int_to_string(whence) + + ")"), QUtil::seek(this->m->file, offset, whence)); } @@ -120,8 +120,8 @@ FileInputSource::read(char* buffer, size_t length) this->m->filename, "", this->last_offset, - std::string("read ") + QUtil::uint_to_string(length) + - " bytes"); + (std::string("read ") + QUtil::uint_to_string(length) + + " bytes")); } else if (length > 0) { this->seek(0, SEEK_END); this->last_offset = this->tell(); |