summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2024-01-04 13:16:47 +0100
committerJay Berkenbilt <ejb@ql.org>2024-01-04 13:31:00 +0100
commitbfc5fc51f2bd0162bcf30351b81d0253afd4e941 (patch)
tree10e11b828797ed5763af5727688d10e36bd07b2d
parent90ec6c26d8daaf7cdabe64b6cda91dbd6d1f4657 (diff)
downloadqpdf-bfc5fc51f2bd0162bcf30351b81d0253afd4e941.tar.zst
Remove unused argument in private setWriterOptions method
-rw-r--r--include/qpdf/QPDFJob.hh4
-rw-r--r--libqpdf/QPDFJob.cc10
2 files changed, 7 insertions, 7 deletions
diff --git a/include/qpdf/QPDFJob.hh b/include/qpdf/QPDFJob.hh
index 3cfc550e..01fe35ae 100644
--- a/include/qpdf/QPDFJob.hh
+++ b/include/qpdf/QPDFJob.hh
@@ -504,8 +504,8 @@ class QPDFJob
// Output generation
void doSplitPages(QPDF& pdf);
- void setWriterOptions(QPDF& pdf, QPDFWriter& w);
- void setEncryptionOptions(QPDF&, QPDFWriter&);
+ void setWriterOptions(QPDFWriter&);
+ void setEncryptionOptions(QPDFWriter&);
void maybeFixWritePassword(int R, std::string& password);
void writeOutfile(QPDF& pdf);
void writeJSON(QPDF& pdf);
diff --git a/libqpdf/QPDFJob.cc b/libqpdf/QPDFJob.cc
index a7cb3e3a..b0910cbd 100644
--- a/libqpdf/QPDFJob.cc
+++ b/libqpdf/QPDFJob.cc
@@ -2661,7 +2661,7 @@ QPDFJob::maybeFixWritePassword(int R, std::string& password)
}
void
-QPDFJob::setEncryptionOptions(QPDF& pdf, QPDFWriter& w)
+QPDFJob::setEncryptionOptions(QPDFWriter& w)
{
int R = 0;
if (m->keylen == 40) {
@@ -2782,7 +2782,7 @@ parse_version(std::string const& full_version_string, std::string& version, int&
}
void
-QPDFJob::setWriterOptions(QPDF& pdf, QPDFWriter& w)
+QPDFJob::setWriterOptions(QPDFWriter& w)
{
if (m->compression_level >= 0) {
Pl_Flate::setCompressionLevel(m->compression_level);
@@ -2837,7 +2837,7 @@ QPDFJob::setWriterOptions(QPDF& pdf, QPDFWriter& w)
w.copyEncryptionParameters(*encryption_pdf);
}
if (m->encrypt) {
- setEncryptionOptions(pdf, w);
+ setEncryptionOptions(w);
}
if (m->linearize) {
w.setLinearization(true);
@@ -2956,7 +2956,7 @@ QPDFJob::doSplitPages(QPDF& pdf)
throw std::runtime_error("split pages would overwrite input file with " + outfile);
}
QPDFWriter w(outpdf, outfile.c_str());
- setWriterOptions(outpdf, w);
+ setWriterOptions(w);
w.write();
doIfVerbose([&](Pipeline& v, std::string const& prefix) {
v << prefix << ": wrote file " << outfile << "\n";
@@ -2991,7 +2991,7 @@ QPDFJob::writeOutfile(QPDF& pdf)
m->log->saveToStandardOutput(true);
w.setOutputPipeline(m->log->getSave().get());
}
- setWriterOptions(pdf, w);
+ setWriterOptions(w);
w.write();
}
if (m->outfilename) {