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_PNGFilter.cc | |
parent | d27edd54c4b077de66c40f681ff5d0e266952884 (diff) | |
download | qpdf-073808aa50f0c78e2d6fea4f56f0b814b314eb42.tar.zst |
Code tidy : replace 0 with nullptr or true
Diffstat (limited to 'libqpdf/Pl_PNGFilter.cc')
-rw-r--r-- | libqpdf/Pl_PNGFilter.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libqpdf/Pl_PNGFilter.cc b/libqpdf/Pl_PNGFilter.cc index 7914b3b6..e2a9a0db 100644 --- a/libqpdf/Pl_PNGFilter.cc +++ b/libqpdf/Pl_PNGFilter.cc @@ -22,10 +22,10 @@ Pl_PNGFilter::Pl_PNGFilter( unsigned int bits_per_sample) : Pipeline(identifier, next), action(action), - cur_row(0), - prev_row(0), - buf1(0), - buf2(0), + cur_row(nullptr), + prev_row(nullptr), + buf1(nullptr), + buf2(nullptr), pos(0) { if (samples_per_pixel < 1) { @@ -243,7 +243,7 @@ Pl_PNGFilter::finish() // write partial row processRow(); } - this->prev_row = 0; + this->prev_row = nullptr; this->cur_row = buf1.get(); this->pos = 0; memset(this->cur_row, 0, this->bytes_per_row + 1); |