From 073808aa50f0c78e2d6fea4f56f0b814b314eb42 Mon Sep 17 00:00:00 2001 From: m-holger Date: Tue, 26 Jul 2022 12:37:50 +0100 Subject: Code tidy : replace 0 with nullptr or true --- libqpdf/Pl_RC4.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libqpdf/Pl_RC4.cc') diff --git a/libqpdf/Pl_RC4.cc b/libqpdf/Pl_RC4.cc index 1f64b5d3..823b22ea 100644 --- a/libqpdf/Pl_RC4.cc +++ b/libqpdf/Pl_RC4.cc @@ -18,7 +18,7 @@ Pl_RC4::Pl_RC4( void Pl_RC4::write(unsigned char const* data, size_t len) { - if (this->outbuf.get() == 0) { + if (this->outbuf.get() == nullptr) { throw std::logic_error( this->identifier + ": Pl_RC4: write() called after finish() called"); @@ -41,6 +41,6 @@ Pl_RC4::write(unsigned char const* data, size_t len) void Pl_RC4::finish() { - this->outbuf = 0; + this->outbuf = nullptr; this->getNext()->finish(); } -- cgit v1.2.3-54-g00ecf