diff options
author | Jay Berkenbilt <jberkenbilt@users.noreply.github.com> | 2023-06-17 15:26:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-17 15:26:16 +0200 |
commit | 44dce4e2988ec09e36dfb6d1fc527a143e6f597f (patch) | |
tree | 3cdb1999faeb5103eb87c36fb1673d8cbb5ab082 /libqpdf/QPDFJob_config.cc | |
parent | fc30e75122f6bef20ac8d676ac7cb8822feecf3e (diff) | |
parent | acd0acf16931ce92bc908e4960c5a1e43d53b550 (diff) | |
download | qpdf-44dce4e2988ec09e36dfb6d1fc527a143e6f597f.tar.zst |
Merge pull request #978 from m-holger/reflow
Code tidy - reflow comments and strings
Diffstat (limited to 'libqpdf/QPDFJob_config.cc')
-rw-r--r-- | libqpdf/QPDFJob_config.cc | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/libqpdf/QPDFJob_config.cc b/libqpdf/QPDFJob_config.cc index 7c275f20..e847bcd4 100644 --- a/libqpdf/QPDFJob_config.cc +++ b/libqpdf/QPDFJob_config.cc @@ -25,18 +25,14 @@ QPDFJob::Config* QPDFJob::Config::emptyInput() { 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 - // been specified. This approach means that passing "" as - // the argument to inputFile in job JSON, or equivalently - // using "" as a positional command-line argument would be the - // same as --empty. This probably isn't worth blocking or - // coding around. + // 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 been + // specified. This approach means that passing "" as the argument to inputFile in job JSON, + // or equivalently using "" as a positional command-line argument would be the same as + // --empty. This probably isn't worth blocking or coding around. o.m->infilename = QUtil::make_shared_cstr(""); } else { - usage("empty input can't be used" - " since input file has already been given"); + usage("empty input can't be used since input file has already been given"); } return this; } @@ -58,8 +54,7 @@ QPDFJob::Config::replaceInput() if ((o.m->outfilename == nullptr) && (!o.m->replace_input)) { o.m->replace_input = true; } else { - usage("replace-input can't be used" - " since output file has already been given"); + usage("replace-input can't be used since output file has already been given"); } return this; } @@ -298,8 +293,7 @@ QPDFJob::Config::jsonOutput(std::string const& parameter) o.m->json_output = true; json(parameter); if (!o.m->json_stream_data_set) { - // No need to set json_stream_data_set -- that indicates - // explicit use of --json-stream-data. + // No need to set json_stream_data_set -- that indicates explicit use of --json-stream-data. o.m->json_stream_data = qpdf_sj_inline; } if (!o.m->decode_level_set) { |