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/QPDFAcroFormDocumentHelper.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libqpdf/QPDFAcroFormDocumentHelper.cc') diff --git a/libqpdf/QPDFAcroFormDocumentHelper.cc b/libqpdf/QPDFAcroFormDocumentHelper.cc index c3ade76c..ec1009e0 100644 --- a/libqpdf/QPDFAcroFormDocumentHelper.cc +++ b/libqpdf/QPDFAcroFormDocumentHelper.cc @@ -903,7 +903,7 @@ QPDFAcroFormDocumentHelper::transformAnnotations( else if ((from_qpdf != &this->qpdf) && (! from_afdh)) { afdhph = new QPDFAcroFormDocumentHelper(*from_qpdf); - from_afdh = afdhph.getPointer(); + from_afdh = afdhph.get(); } bool foreign = (from_qpdf != &this->qpdf); -- cgit v1.2.3-70-g09d2