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/QPDF_linearization.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libqpdf/QPDF_linearization.cc') diff --git a/libqpdf/QPDF_linearization.cc b/libqpdf/QPDF_linearization.cc index 56e42f29..c3c6f79e 100644 --- a/libqpdf/QPDF_linearization.cc +++ b/libqpdf/QPDF_linearization.cc @@ -314,7 +314,7 @@ QPDF::readLinearizationData() QPDFObjectHandle HO = H0.getKey("/O"); // outline PointerHolder hbp = pb.getBuffer(); - Buffer* hb = hbp.getPointer(); + Buffer* hb = hbp.get(); unsigned char const* h_buf = hb->getBuffer(); size_t h_size = hb->getSize(); -- cgit v1.2.3-54-g00ecf