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/Pl_DCT.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/Pl_DCT.cc')
-rw-r--r-- | libqpdf/Pl_DCT.cc | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/libqpdf/Pl_DCT.cc b/libqpdf/Pl_DCT.cc index 30747dd3..90e8a676 100644 --- a/libqpdf/Pl_DCT.cc +++ b/libqpdf/Pl_DCT.cc @@ -185,8 +185,9 @@ static void jpeg_pipeline_dest( j_compress_ptr cinfo, unsigned char* outbuffer, size_t size, Pipeline* next) { - cinfo->dest = - static_cast<struct jpeg_destination_mgr*>((*cinfo->mem->alloc_small)( + cinfo->dest = static_cast<struct jpeg_destination_mgr*>( + // line-break + (*cinfo->mem->alloc_small)( reinterpret_cast<j_common_ptr>(cinfo), JPOOL_PERMANENT, sizeof(dct_pipeline_dest))); @@ -239,10 +240,12 @@ term_buffer_source(j_decompress_ptr) static void jpeg_buffer_src(j_decompress_ptr cinfo, Buffer* buffer) { - cinfo->src = reinterpret_cast<jpeg_source_mgr*>((*cinfo->mem->alloc_small)( - reinterpret_cast<j_common_ptr>(cinfo), - JPOOL_PERMANENT, - sizeof(jpeg_source_mgr))); + cinfo->src = reinterpret_cast<jpeg_source_mgr*>( + // line-break + (*cinfo->mem->alloc_small)( + reinterpret_cast<j_common_ptr>(cinfo), + JPOOL_PERMANENT, + sizeof(jpeg_source_mgr))); jpeg_source_mgr* src = cinfo->src; src->init_source = init_buffer_source; |