From 3c5700c255f4603b5df9c6d183d13dd71a083cc3 Mon Sep 17 00:00:00 2001 From: m-holger Date: Sat, 27 May 2023 18:19:52 +0100 Subject: Code tidy - reflow comments and strings --- libqpdf/Pl_LZWDecoder.cc | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'libqpdf/Pl_LZWDecoder.cc') diff --git a/libqpdf/Pl_LZWDecoder.cc b/libqpdf/Pl_LZWDecoder.cc index 8e5fd9d1..4ffcaa3f 100644 --- a/libqpdf/Pl_LZWDecoder.cc +++ b/libqpdf/Pl_LZWDecoder.cc @@ -149,9 +149,8 @@ Pl_LZWDecoder::handleCode(unsigned int code) this->eod = true; } else { if (this->last_code != 256) { - // Add to the table from last time. New table entry would - // be what we read last plus the first character of what - // we're reading now. + // Add to the table from last time. New table entry would be what we read last plus the + // first character of what we're reading now. unsigned char next = '\0'; unsigned int table_size = QIntC::to_uint(table.size()); if (code < 256) { @@ -162,10 +161,8 @@ Pl_LZWDecoder::handleCode(unsigned int code) if (idx > table_size) { throw std::runtime_error("LZWDecoder: bad code received"); } else if (idx == table_size) { - // The encoder would have just created this entry, - // so the first character of this entry would have - // been the same as the first character of the - // last entry. + // The encoder would have just created this entry, so the first character of + // this entry would have been the same as the first character of the last entry. QTC::TC("libtests", "Pl_LZWDecoder last was table size"); next = getFirstChar(this->last_code); } else { -- cgit v1.2.3-54-g00ecf