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 /examples/pdf-attach-file.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 'examples/pdf-attach-file.cc')
-rw-r--r-- | examples/pdf-attach-file.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/pdf-attach-file.cc b/examples/pdf-attach-file.cc index eb12a002..c04f5b9f 100644 --- a/examples/pdf-attach-file.cc +++ b/examples/pdf-attach-file.cc @@ -15,7 +15,7 @@ // the use of the qpdf literal syntax introduced in qpdf 10.6. // -static char const* whoami = 0; +static char const* whoami = nullptr; static void usage(std::string const& msg) @@ -167,11 +167,11 @@ main(int argc, char* argv[]) { whoami = QUtil::getWhoami(argv[0]); - char const* infilename = 0; - char const* password = 0; - char const* attachment = 0; - char const* outfilename = 0; - char const* mimetype = 0; + char const* infilename = nullptr; + char const* password = nullptr; + char const* attachment = nullptr; + char const* outfilename = nullptr; + char const* mimetype = nullptr; auto check_arg = [](char const* arg, std::string const& msg) { if (arg == nullptr) { |