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/QPDFAcroFormDocumentHelper.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libqpdf/QPDFAcroFormDocumentHelper.cc') diff --git a/libqpdf/QPDFAcroFormDocumentHelper.cc b/libqpdf/QPDFAcroFormDocumentHelper.cc index ec1009e0..4e05c46a 100644 --- a/libqpdf/QPDFAcroFormDocumentHelper.cc +++ b/libqpdf/QPDFAcroFormDocumentHelper.cc @@ -768,7 +768,7 @@ QPDFAcroFormDocumentHelper::adjustDefaultAppearances( ResourceReplacer rr(dr_map, rf.getNamesByResourceType()); Pl_Buffer buf_pl("filtered DA"); da_stream.filterAsContents(&rr, &buf_pl); - PointerHolder buf = buf_pl.getBuffer(); + auto buf = buf_pl.getBufferSharedPointer(); std::string new_da( reinterpret_cast(buf->getBuffer()), buf->getSize()); obj.replaceKey("/DA", QPDFObjectHandle::newString(new_da)); @@ -871,7 +871,7 @@ QPDFAcroFormDocumentHelper::adjustAppearanceStream( QTC::TC("qpdf", "QPDFAcroFormDocumentHelper AP parse error"); } auto rr = new ResourceReplacer(dr_map, rf.getNamesByResourceType()); - PointerHolder tf = rr; + auto tf = PointerHolder(rr); stream.addTokenFilter(tf); } catch (std::exception& e) @@ -902,7 +902,7 @@ QPDFAcroFormDocumentHelper::transformAnnotations( } else if ((from_qpdf != &this->qpdf) && (! from_afdh)) { - afdhph = new QPDFAcroFormDocumentHelper(*from_qpdf); + afdhph = make_pointer_holder(*from_qpdf); from_afdh = afdhph.get(); } bool foreign = (from_qpdf != &this->qpdf); -- cgit v1.2.3-54-g00ecf