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 /examples/pdf-attach-file.cc | |
parent | d27edd54c4b077de66c40f681ff5d0e266952884 (diff) | |
download | qpdf-073808aa50f0c78e2d6fea4f56f0b814b314eb42.tar.zst |
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) { |