From 9044a24097565c1a8eb542ae0eabb2539b3cc62b Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Fri, 4 Feb 2022 10:10:19 -0500 Subject: PointerHolder: deprecate getPointer() and getRefcount() Use get() and use_count() instead. Add #define NO_POINTERHOLDER_DEPRECATION to remove deprecation markers for these only. This commit also removes all deprecated PointerHolder API calls from qpdf's code except in PointerHolder's test suite, which must continue to test the deprecated APIs. --- libqpdf/QPDFPageObjectHelper.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libqpdf/QPDFPageObjectHelper.cc') diff --git a/libqpdf/QPDFPageObjectHelper.cc b/libqpdf/QPDFPageObjectHelper.cc index ca543471..f9d63165 100644 --- a/libqpdf/QPDFPageObjectHelper.cc +++ b/libqpdf/QPDFPageObjectHelper.cc @@ -1222,7 +1222,7 @@ QPDFPageObjectHelper::flattenRotation(QPDFAcroFormDocumentHelper* afdh) if (! afdh) { afdhph = new QPDFAcroFormDocumentHelper(*qpdf); - afdh = afdhph.getPointer(); + afdh = afdhph.get(); } afdh->transformAnnotations( annots, new_annots, new_fields, old_fields, cm); @@ -1270,7 +1270,7 @@ QPDFPageObjectHelper::copyAnnotations( if (! afdh) { afdhph = new QPDFAcroFormDocumentHelper(*this_qpdf); - afdh = afdhph.getPointer(); + afdh = afdhph.get(); } if (this_qpdf == from_qpdf) { @@ -1288,7 +1288,7 @@ QPDFPageObjectHelper::copyAnnotations( else { from_afdhph = new QPDFAcroFormDocumentHelper(*from_qpdf); - from_afdh = from_afdhph.getPointer(); + from_afdh = from_afdhph.get(); } afdh->transformAnnotations( -- cgit v1.2.3-54-g00ecf