diff options
author | Jay Berkenbilt <jberkenbilt@users.noreply.github.com> | 2022-07-31 14:33:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-31 14:33:45 +0200 |
commit | 4feb10fdaf51bf3f88b853cdb32a1e9b1692ba52 (patch) | |
tree | a99925c17b8acddd802c705221ee71b71f891694 /libqpdf/QPDF_encryption.cc | |
parent | c9cc8cfd74fdb59d5450939e1772dea35d369b04 (diff) | |
parent | 073808aa50f0c78e2d6fea4f56f0b814b314eb42 (diff) | |
download | qpdf-4feb10fdaf51bf3f88b853cdb32a1e9b1692ba52.tar.zst |
Merge pull request #734 from m-holger/nullptr
Code tidy : replace 0 with nullptr or true
Diffstat (limited to 'libqpdf/QPDF_encryption.cc')
-rw-r--r-- | libqpdf/QPDF_encryption.cc | 6 |
1 files changed, 3 insertions, 3 deletions
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"); |