From 03f3369f35b2303166e8d36547c8a0aba6626c1b Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Wed, 26 Jan 2022 17:02:30 -0500 Subject: QPDFJob: use manually named end functions for Config classes Use named functions rather than just end() for clarity. --- include/qpdf/QPDFJob.hh | 10 ++++++++++ include/qpdf/auto_job_c_att.hh | 1 - include/qpdf/auto_job_c_copy_att.hh | 1 - include/qpdf/auto_job_c_enc.hh | 1 - include/qpdf/auto_job_c_pages.hh | 1 - include/qpdf/auto_job_c_uo.hh | 1 - 6 files changed, 10 insertions(+), 5 deletions(-) (limited to 'include') diff --git a/include/qpdf/QPDFJob.hh b/include/qpdf/QPDFJob.hh index 274a19f6..99199b89 100644 --- a/include/qpdf/QPDFJob.hh +++ b/include/qpdf/QPDFJob.hh @@ -153,6 +153,8 @@ class QPDFJob friend class QPDFJob; friend class Config; public: + QPDF_DLL + Config& endAddAttachment(); QPDF_DLL AttConfig& path(char const* parameter); @@ -171,6 +173,8 @@ class QPDFJob friend class QPDFJob; friend class Config; public: + QPDF_DLL + Config& endCopyAttachmentsFrom(); QPDF_DLL CopyAttConfig& path(char const* parameter); @@ -189,6 +193,8 @@ class QPDFJob friend class QPDFJob; friend class Config; public: + QPDF_DLL + Config& endPages(); QPDF_DLL PagesConfig& pageSpec(std::string const& filename, std::string const& range, @@ -208,6 +214,8 @@ class QPDFJob friend class QPDFJob; friend class Config; public: + QPDF_DLL + Config& endUnderlayOverlay(); QPDF_DLL UOConfig& path(char const* parameter); @@ -225,6 +233,8 @@ class QPDFJob friend class QPDFJob; friend class Config; public: + QPDF_DLL + Config& endEncrypt(); QPDF_DLL EncConfig& path(char const* parameter); diff --git a/include/qpdf/auto_job_c_att.hh b/include/qpdf/auto_job_c_att.hh index ac0f4223..156964a8 100644 --- a/include/qpdf/auto_job_c_att.hh +++ b/include/qpdf/auto_job_c_att.hh @@ -3,7 +3,6 @@ // Edits will be automatically overwritten if the build is // run in maintainer mode. // -QPDF_DLL Config& end(); QPDF_DLL AttConfig& replace(); QPDF_DLL AttConfig& key(char const* parameter); QPDF_DLL AttConfig& filename(char const* parameter); diff --git a/include/qpdf/auto_job_c_copy_att.hh b/include/qpdf/auto_job_c_copy_att.hh index d389611f..bae11e9d 100644 --- a/include/qpdf/auto_job_c_copy_att.hh +++ b/include/qpdf/auto_job_c_copy_att.hh @@ -3,6 +3,5 @@ // Edits will be automatically overwritten if the build is // run in maintainer mode. // -QPDF_DLL Config& end(); QPDF_DLL CopyAttConfig& prefix(char const* parameter); QPDF_DLL CopyAttConfig& password(char const* parameter); diff --git a/include/qpdf/auto_job_c_enc.hh b/include/qpdf/auto_job_c_enc.hh index e808de6c..8c84fc81 100644 --- a/include/qpdf/auto_job_c_enc.hh +++ b/include/qpdf/auto_job_c_enc.hh @@ -3,7 +3,6 @@ // Edits will be automatically overwritten if the build is // run in maintainer mode. // -QPDF_DLL Config& end(); QPDF_DLL EncConfig& extract(char const* parameter); QPDF_DLL EncConfig& annotate(char const* parameter); QPDF_DLL EncConfig& print(char const* parameter); diff --git a/include/qpdf/auto_job_c_pages.hh b/include/qpdf/auto_job_c_pages.hh index 0d81c336..d6cbecfe 100644 --- a/include/qpdf/auto_job_c_pages.hh +++ b/include/qpdf/auto_job_c_pages.hh @@ -3,4 +3,3 @@ // Edits will be automatically overwritten if the build is // run in maintainer mode. // -QPDF_DLL Config& end(); diff --git a/include/qpdf/auto_job_c_uo.hh b/include/qpdf/auto_job_c_uo.hh index 39b54511..4e4afd49 100644 --- a/include/qpdf/auto_job_c_uo.hh +++ b/include/qpdf/auto_job_c_uo.hh @@ -3,7 +3,6 @@ // Edits will be automatically overwritten if the build is // run in maintainer mode. // -QPDF_DLL Config& end(); QPDF_DLL UOConfig& to(char const* parameter); QPDF_DLL UOConfig& from(char const* parameter); QPDF_DLL UOConfig& repeat(char const* parameter); -- cgit v1.2.3-54-g00ecf