diff options
author | m-holger <m-holger@kubitscheck.org> | 2022-07-26 13:37:50 +0200 |
---|---|---|
committer | m-holger <m-holger@kubitscheck.org> | 2022-07-26 14:40:13 +0200 |
commit | 073808aa50f0c78e2d6fea4f56f0b814b314eb42 (patch) | |
tree | e2598b807a59cab41825d3b36f33dce45c7ba4de /libqpdf/Pl_LZWDecoder.cc | |
parent | d27edd54c4b077de66c40f681ff5d0e266952884 (diff) | |
download | qpdf-073808aa50f0c78e2d6fea4f56f0b814b314eb42.tar.zst |
Code tidy : replace 0 with nullptr or true
Diffstat (limited to 'libqpdf/Pl_LZWDecoder.cc')
-rw-r--r-- | libqpdf/Pl_LZWDecoder.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libqpdf/Pl_LZWDecoder.cc b/libqpdf/Pl_LZWDecoder.cc index 3a381899..7d02f291 100644 --- a/libqpdf/Pl_LZWDecoder.cc +++ b/libqpdf/Pl_LZWDecoder.cc @@ -14,7 +14,7 @@ Pl_LZWDecoder::Pl_LZWDecoder( byte_pos(0), bit_pos(0), bits_available(0), - code_change_delta(early_code_change ? 1 : 0), + code_change_delta(early_code_change), eod(false), last_code(256) { @@ -107,7 +107,7 @@ void Pl_LZWDecoder::addToTable(unsigned char next) { unsigned int last_size = 0; - unsigned char const* last_data = 0; + unsigned char const* last_data = nullptr; unsigned char tmp[1]; if (this->last_code < 256) { |