diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-02-06 17:40:24 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-02-07 23:38:22 +0100 |
commit | c62e8e2b285b9b401d6add5a7a0da98c7ea86373 (patch) | |
tree | 040e8fa45d6b459200e57e26fbacad6ddd7414f1 /libqpdf/QPDFJob.cc | |
parent | 3f22bea084d8d64cba1a433726abd709caf8456b (diff) | |
download | qpdf-c62e8e2b285b9b401d6add5a7a0da98c7ea86373.tar.zst |
Update for clean compile with POINTERHOLDER_TRANSITION=2
Diffstat (limited to 'libqpdf/QPDFJob.cc')
-rw-r--r-- | libqpdf/QPDFJob.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/libqpdf/QPDFJob.cc b/libqpdf/QPDFJob.cc index 362db7c2..fab552fc 100644 --- a/libqpdf/QPDFJob.cc +++ b/libqpdf/QPDFJob.cc @@ -2854,14 +2854,14 @@ QPDFJob::handlePageSpecs( { QTC::TC("qpdf", "QPDFJob keep files open n"); cis = new ClosedFileInputSource(page_spec.filename.c_str()); - is = cis; + is = PointerHolder<InputSource>(cis); cis->stayOpen(true); } else { QTC::TC("qpdf", "QPDFJob keep files open y"); FileInputSource* fis = new FileInputSource(); - is = fis; + is = PointerHolder<InputSource>(fis); fis->setFilename(page_spec.filename.c_str()); } std::shared_ptr<QPDF> qpdf_ph = processInputSource(is, password); @@ -3489,9 +3489,10 @@ QPDFJob::setWriterOptions(QPDF& pdf, QPDFWriter& w) if (m->progress && m->outfilename) { w.registerProgressReporter( - new ProgressReporter( - *(this->m->cout), this->m->message_prefix, - m->outfilename.get())); + PointerHolder<QPDFWriter::ProgressReporter>( + new ProgressReporter( + *(this->m->cout), this->m->message_prefix, + m->outfilename.get()))); } } |