aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFJob_argv.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-02-01 13:49:00 +0100
committerJay Berkenbilt <ejb@ql.org>2022-02-01 15:04:55 +0100
commit03e67a28fed49594c4f20718ce17d4852b40c83d (patch)
treec3109f1b1a97e9a45e876ea44428bb34a82b1767 /libqpdf/QPDFJob_argv.cc
parentb42f3e1d15203927776a5b0954782287c901300f (diff)
downloadqpdf-03e67a28fed49594c4f20718ce17d4852b40c83d.tar.zst
Move QTC::TC for qpdf to QPDFJob
All the coverage cases that used to be in qpdf.cc are now in QPDFJob*.cc. It doesn't really matter, but better to follow the convention of starting with the class that includes the coverage call.
Diffstat (limited to 'libqpdf/QPDFJob_argv.cc')
-rw-r--r--libqpdf/QPDFJob_argv.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/libqpdf/QPDFJob_argv.cc b/libqpdf/QPDFJob_argv.cc
index ed37dbce..203e4b27 100644
--- a/libqpdf/QPDFJob_argv.cc
+++ b/libqpdf/QPDFJob_argv.cc
@@ -248,12 +248,12 @@ ArgParser::argPagesPassword(char* parameter)
{
if (this->pages_password != nullptr)
{
- QTC::TC("qpdf", "qpdf duplicated pages password");
+ QTC::TC("qpdf", "QPDFJob duplicated pages password");
usage("--password already specified for this file");
}
if (this->accumulated_args.size() != 1)
{
- QTC::TC("qpdf", "qpdf misplaced pages password");
+ QTC::TC("qpdf", "QPDFJob misplaced pages password");
usage("in --pages, --password must immediately follow a file name");
}
this->pages_password = parameter;
@@ -291,7 +291,7 @@ ArgParser::argPagesPositional(char* arg)
if (arg == nullptr)
{
// The filename or password was the last argument
- QTC::TC("qpdf", "qpdf pages range omitted at end",
+ QTC::TC("qpdf", "QPDFJob pages range omitted at end",
this->pages_password == nullptr ? 0 : 1);
}
else
@@ -312,11 +312,11 @@ ArgParser::argPagesPositional(char* arg)
if (strcmp(range, ".") == 0)
{
// "." means the input file.
- QTC::TC("qpdf", "qpdf pages range omitted with .");
+ QTC::TC("qpdf", "QPDFJob pages range omitted with .");
}
else if (QUtil::file_can_be_opened(range))
{
- QTC::TC("qpdf", "qpdf pages range omitted in middle");
+ QTC::TC("qpdf", "QPDFJob pages range omitted in middle");
// Yup, it's a file.
}
else