aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFJob_config.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-01-31 19:07:19 +0100
committerJay Berkenbilt <ejb@ql.org>2022-01-31 21:57:45 +0100
commitcaa00556cfd0f6d45c49eb3d546f41b5c69900eb (patch)
treebfe96b87f40c51025d2153a21b6ae217c0e64a3a /libqpdf/QPDFJob_config.cc
parent1a3ed1ee8569504bc57bdba07cc4e8b87442767d (diff)
downloadqpdf-caa00556cfd0f6d45c49eb3d546f41b5c69900eb.tar.zst
Change filename or path to file in json and QPDFJob
Use "file" consistently for specifying a file path. We use "filename" when adding attachments for a completely different purpose.
Diffstat (limited to 'libqpdf/QPDFJob_config.cc')
-rw-r--r--libqpdf/QPDFJob_config.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/libqpdf/QPDFJob_config.cc b/libqpdf/QPDFJob_config.cc
index 02f1b69e..33c2e94a 100644
--- a/libqpdf/QPDFJob_config.cc
+++ b/libqpdf/QPDFJob_config.cc
@@ -761,7 +761,7 @@ QPDFJob::CopyAttConfig::CopyAttConfig(Config* c) :
}
QPDFJob::CopyAttConfig*
-QPDFJob::CopyAttConfig::path(char const* parameter)
+QPDFJob::CopyAttConfig::file(char const* parameter)
{
this->caf.path = parameter;
return this;
@@ -786,7 +786,7 @@ QPDFJob::CopyAttConfig::endCopyAttachmentsFrom()
{
if (this->caf.path.empty())
{
- usage("copy attachments: no path specified");
+ usage("copy attachments: no file specified");
}
this->config->o.m->attachments_to_copy.push_back(this->caf);
return this->config;
@@ -804,7 +804,7 @@ QPDFJob::Config::addAttachment()
}
QPDFJob::AttConfig*
-QPDFJob::AttConfig::path(char const* parameter)
+QPDFJob::AttConfig::file(char const* parameter)
{
this->att.path = parameter;
return this;
@@ -878,12 +878,12 @@ QPDFJob::AttConfig::endAddAttachment()
QUtil::get_current_qpdf_time());
if (this->att.path.empty())
{
- usage("add attachment: no path specified");
+ usage("add attachment: no file specified");
}
std::string last_element = QUtil::path_basename(this->att.path);
if (last_element.empty())
{
- usage("path for --add-attachment may not be empty");
+ usage("file for --add-attachment may not be empty");
}
if (this->att.filename.empty())
{
@@ -972,7 +972,7 @@ QPDFJob::UOConfig::endUnderlayOverlay()
}
QPDFJob::UOConfig*
-QPDFJob::UOConfig::path(char const* parameter)
+QPDFJob::UOConfig::file(char const* parameter)
{
if (! config->o.m->under_overlay->filename.empty())
{