aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFJob_config.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <jberkenbilt@users.noreply.github.com>2022-07-31 14:33:45 +0200
committerGitHub <noreply@github.com>2022-07-31 14:33:45 +0200
commit4feb10fdaf51bf3f88b853cdb32a1e9b1692ba52 (patch)
treea99925c17b8acddd802c705221ee71b71f891694 /libqpdf/QPDFJob_config.cc
parentc9cc8cfd74fdb59d5450939e1772dea35d369b04 (diff)
parent073808aa50f0c78e2d6fea4f56f0b814b314eb42 (diff)
downloadqpdf-4feb10fdaf51bf3f88b853cdb32a1e9b1692ba52.tar.zst
Merge pull request #734 from m-holger/nullptr
Code tidy : replace 0 with nullptr or true
Diffstat (limited to 'libqpdf/QPDFJob_config.cc')
-rw-r--r--libqpdf/QPDFJob_config.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/libqpdf/QPDFJob_config.cc b/libqpdf/QPDFJob_config.cc
index b9b53ebd..0192346e 100644
--- a/libqpdf/QPDFJob_config.cc
+++ b/libqpdf/QPDFJob_config.cc
@@ -13,7 +13,7 @@ QPDFJob::Config::checkConfiguration()
QPDFJob::Config*
QPDFJob::Config::inputFile(std::string const& filename)
{
- if (o.m->infilename == 0) {
+ if (o.m->infilename == nullptr) {
o.m->infilename = QUtil::make_shared_cstr(filename);
} else {
usage("input file has already been given");
@@ -24,7 +24,7 @@ QPDFJob::Config::inputFile(std::string const& filename)
QPDFJob::Config*
QPDFJob::Config::emptyInput()
{
- if (o.m->infilename == 0) {
+ if (o.m->infilename == nullptr) {
// Various places in QPDFJob.cc know that the empty string for
// infile means empty. We set it to something other than a
// null pointer as an indication that some input source has
@@ -44,7 +44,7 @@ QPDFJob::Config::emptyInput()
QPDFJob::Config*
QPDFJob::Config::outputFile(std::string const& filename)
{
- if ((o.m->outfilename == 0) && (!o.m->replace_input)) {
+ if ((o.m->outfilename == nullptr) && (!o.m->replace_input)) {
o.m->outfilename = QUtil::make_shared_cstr(filename);
} else {
usage("output file has already been given");
@@ -55,7 +55,7 @@ QPDFJob::Config::outputFile(std::string const& filename)
QPDFJob::Config*
QPDFJob::Config::replaceInput()
{
- if ((o.m->outfilename == 0) && (!o.m->replace_input)) {
+ if ((o.m->outfilename == nullptr) && (!o.m->replace_input)) {
o.m->replace_input = true;
} else {
usage("replace-input can't be used"
@@ -977,7 +977,7 @@ QPDFJob::UOConfig::endUnderlayOverlay()
if (config->o.m->under_overlay->filename.empty()) {
usage(config->o.m->under_overlay->which + " file not specified");
}
- config->o.m->under_overlay = 0;
+ config->o.m->under_overlay = nullptr;
return this->config;
}