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 --- examples/pdf-attach-file.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'examples/pdf-attach-file.cc') 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) { -- cgit v1.2.3-70-g09d2