aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFJob_config.cc
diff options
context:
space:
mode:
authorm-holger <m-holger@kubitscheck.org>2023-05-27 19:19:52 +0200
committerm-holger <m-holger@kubitscheck.org>2023-06-02 17:00:40 +0200
commit3c5700c255f4603b5df9c6d183d13dd71a083cc3 (patch)
tree0f01c62c54b56d009b341922fa3441907a2e560b /libqpdf/QPDFJob_config.cc
parent6e6a73d28f5f61f038209a61a3e85995dc71aa32 (diff)
downloadqpdf-3c5700c255f4603b5df9c6d183d13dd71a083cc3.tar.zst
Code tidy - reflow comments and strings
Diffstat (limited to 'libqpdf/QPDFJob_config.cc')
-rw-r--r--libqpdf/QPDFJob_config.cc22
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) {