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/QPDF_encryption.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libqpdf/QPDF_encryption.cc') diff --git a/libqpdf/QPDF_encryption.cc b/libqpdf/QPDF_encryption.cc index 8c35b992..266907a8 100644 --- a/libqpdf/QPDF_encryption.cc +++ b/libqpdf/QPDF_encryption.cc @@ -149,8 +149,8 @@ QPDF::trim_user_password(std::string& user_password) } char const* p1 = cstr; - char const* p2 = 0; - while ((p2 = strchr(p1, '\x28')) != 0) { + char const* p2 = nullptr; + while ((p2 = strchr(p1, '\x28')) != nullptr) { size_t idx = toS(p2 - cstr); if (memcmp(p2, padding_string, len - idx) == 0) { user_password = user_password.substr(0, idx); @@ -218,7 +218,7 @@ process_with_aes( std::string const& data, size_t outlength = 0, unsigned int repetitions = 1, - unsigned char const* iv = 0, + unsigned char const* iv = nullptr, size_t iv_length = 0) { Pl_Buffer buffer("buffer"); -- cgit v1.2.3-54-g00ecf