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/QPDFArgParser.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libqpdf/QPDFArgParser.cc') diff --git a/libqpdf/QPDFArgParser.cc b/libqpdf/QPDFArgParser.cc index c58edec7..89bf5ad1 100644 --- a/libqpdf/QPDFArgParser.cc +++ b/libqpdf/QPDFArgParser.cc @@ -30,7 +30,7 @@ QPDFArgParser::QPDFArgParser( m(new Members(argc, argv, progname_env)) { selectHelpOptionTable(); - char const* help_choices[] = {"all", 0}; + char const* help_choices[] = {"all", nullptr}; // More help choices are added dynamically. addChoices( "help", bindParam(&QPDFArgParser::argHelp, this), false, help_choices); @@ -254,7 +254,7 @@ QPDFArgParser::handleArgFileArguments() // deleted by using shared pointers to back the pointers in argv. this->m->new_argv.push_back(QUtil::make_shared_cstr(this->m->argv[0])); for (int i = 1; i < this->m->argc; ++i) { - char const* argfile = 0; + char const* argfile = nullptr; if ((strlen(this->m->argv[i]) > 1) && (this->m->argv[i][0] == '@')) { argfile = 1 + this->m->argv[i]; if (strcmp(argfile, "-") != 0) { -- cgit v1.2.3-54-g00ecf