From c62e8e2b285b9b401d6add5a7a0da98c7ea86373 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sun, 6 Feb 2022 11:40:24 -0500 Subject: Update for clean compile with POINTERHOLDER_TRANSITION=2 --- libqpdf/QPDFJob.cc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'libqpdf/QPDFJob.cc') 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(cis); cis->stayOpen(true); } else { QTC::TC("qpdf", "QPDFJob keep files open y"); FileInputSource* fis = new FileInputSource(); - is = fis; + is = PointerHolder(fis); fis->setFilename(page_spec.filename.c_str()); } std::shared_ptr 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( + new ProgressReporter( + *(this->m->cout), this->m->message_prefix, + m->outfilename.get()))); } } -- cgit v1.2.3-54-g00ecf