mirror of
https://github.com/qpdf/qpdf.git
synced 2024-05-29 08:20:53 +00:00
Remove unused argument in private setWriterOptions method
This commit is contained in:
parent
90ec6c26d8
commit
bfc5fc51f2
|
@ -504,8 +504,8 @@ class QPDFJob
|
||||||
|
|
||||||
// Output generation
|
// Output generation
|
||||||
void doSplitPages(QPDF& pdf);
|
void doSplitPages(QPDF& pdf);
|
||||||
void setWriterOptions(QPDF& pdf, QPDFWriter& w);
|
void setWriterOptions(QPDFWriter&);
|
||||||
void setEncryptionOptions(QPDF&, QPDFWriter&);
|
void setEncryptionOptions(QPDFWriter&);
|
||||||
void maybeFixWritePassword(int R, std::string& password);
|
void maybeFixWritePassword(int R, std::string& password);
|
||||||
void writeOutfile(QPDF& pdf);
|
void writeOutfile(QPDF& pdf);
|
||||||
void writeJSON(QPDF& pdf);
|
void writeJSON(QPDF& pdf);
|
||||||
|
|
|
@ -2661,7 +2661,7 @@ QPDFJob::maybeFixWritePassword(int R, std::string& password)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
QPDFJob::setEncryptionOptions(QPDF& pdf, QPDFWriter& w)
|
QPDFJob::setEncryptionOptions(QPDFWriter& w)
|
||||||
{
|
{
|
||||||
int R = 0;
|
int R = 0;
|
||||||
if (m->keylen == 40) {
|
if (m->keylen == 40) {
|
||||||
|
@ -2782,7 +2782,7 @@ parse_version(std::string const& full_version_string, std::string& version, int&
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
QPDFJob::setWriterOptions(QPDF& pdf, QPDFWriter& w)
|
QPDFJob::setWriterOptions(QPDFWriter& w)
|
||||||
{
|
{
|
||||||
if (m->compression_level >= 0) {
|
if (m->compression_level >= 0) {
|
||||||
Pl_Flate::setCompressionLevel(m->compression_level);
|
Pl_Flate::setCompressionLevel(m->compression_level);
|
||||||
|
@ -2837,7 +2837,7 @@ QPDFJob::setWriterOptions(QPDF& pdf, QPDFWriter& w)
|
||||||
w.copyEncryptionParameters(*encryption_pdf);
|
w.copyEncryptionParameters(*encryption_pdf);
|
||||||
}
|
}
|
||||||
if (m->encrypt) {
|
if (m->encrypt) {
|
||||||
setEncryptionOptions(pdf, w);
|
setEncryptionOptions(w);
|
||||||
}
|
}
|
||||||
if (m->linearize) {
|
if (m->linearize) {
|
||||||
w.setLinearization(true);
|
w.setLinearization(true);
|
||||||
|
@ -2956,7 +2956,7 @@ QPDFJob::doSplitPages(QPDF& pdf)
|
||||||
throw std::runtime_error("split pages would overwrite input file with " + outfile);
|
throw std::runtime_error("split pages would overwrite input file with " + outfile);
|
||||||
}
|
}
|
||||||
QPDFWriter w(outpdf, outfile.c_str());
|
QPDFWriter w(outpdf, outfile.c_str());
|
||||||
setWriterOptions(outpdf, w);
|
setWriterOptions(w);
|
||||||
w.write();
|
w.write();
|
||||||
doIfVerbose([&](Pipeline& v, std::string const& prefix) {
|
doIfVerbose([&](Pipeline& v, std::string const& prefix) {
|
||||||
v << prefix << ": wrote file " << outfile << "\n";
|
v << prefix << ": wrote file " << outfile << "\n";
|
||||||
|
@ -2991,7 +2991,7 @@ QPDFJob::writeOutfile(QPDF& pdf)
|
||||||
m->log->saveToStandardOutput(true);
|
m->log->saveToStandardOutput(true);
|
||||||
w.setOutputPipeline(m->log->getSave().get());
|
w.setOutputPipeline(m->log->getSave().get());
|
||||||
}
|
}
|
||||||
setWriterOptions(pdf, w);
|
setWriterOptions(w);
|
||||||
w.write();
|
w.write();
|
||||||
}
|
}
|
||||||
if (m->outfilename) {
|
if (m->outfilename) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user