From ba0ef7a124e9aecc2d0113598c851bae4710b887 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sat, 9 Apr 2022 14:49:10 -0400 Subject: Replace PointerHolder with std::shared_ptr in the rest of the code Increase to POINTERHOLDER_TRANSITION=3 patrepl s/PointerHolder/std::shared_ptr/g **/*.cc **/*.hh patrepl s/make_pointer_holder/std::make_shared/g **/*.cc patrepl s/make_array_pointer_holder/QUtil::make_shared_array/g **/*.cc patrepl s,qpdf/std::shared_ptr,qpdf/PointerHolder, **/*.cc **/*.hh git restore include/qpdf/PointerHolder.hh git restore libtests/pointer_holder.cc cleanpatch ./format-code --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 569da980..226e6a2e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -108,7 +108,7 @@ if(NOT (BUILD_STATIC_LIBS OR BUILD_SHARED_LIBS)) FATAL_ERROR "At least one of static or shared libraries must be built") endif() -add_compile_definitions($<$:POINTERHOLDER_TRANSITION=2>) +add_compile_definitions($<$:POINTERHOLDER_TRANSITION=3>) enable_testing() set(RUN_QTEST perl ${qpdf_SOURCE_DIR}/run-qtest) -- cgit v1.2.3-54-g00ecf