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_encryption.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libqpdf/QPDF_encryption.cc') diff --git a/libqpdf/QPDF_encryption.cc b/libqpdf/QPDF_encryption.cc index f6abf5ae..fff35c67 100644 --- a/libqpdf/QPDF_encryption.cc +++ b/libqpdf/QPDF_encryption.cc @@ -206,7 +206,7 @@ iterate_rc4(unsigned char* data, size_t data_len, { PointerHolder key_ph = PointerHolder( true, new unsigned char[QIntC::to_size(key_len)]); - unsigned char* key = key_ph.getPointer(); + unsigned char* key = key_ph.get(); for (int i = 0; i < iterations; ++i) { int const xor_value = (reverse ? iterations - 1 - i : i); -- cgit v1.2.3-54-g00ecf