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. --- libtests/input_source.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libtests/input_source.cc') diff --git a/libtests/input_source.cc b/libtests/input_source.cc index 82d96a45..5a69f295 100644 --- a/libtests/input_source.cc +++ b/libtests/input_source.cc @@ -66,7 +66,7 @@ int main() // of the next match memcpy(b + 2037, "potato potato salad ", 20); PointerHolder is = - new BufferInputSource("test buffer input source", b1.getPointer()); + new BufferInputSource("test buffer input source", b1.get()); Finder f1(is, "salad"); check("find potato salad", true, is->findFirst("potato", 0, 0, f1)); -- cgit v1.2.3-54-g00ecf