aboutsummaryrefslogtreecommitdiffstats
path: root/libtests
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-02-06 15:19:56 +0100
committerJay Berkenbilt <ejb@ql.org>2022-02-07 23:38:20 +0100
commitdd4f30226f3d4738e198dfcb944ce4cdc7e50a86 (patch)
tree3f9aaec5429e4c744e2df44e7ef027d2f016ff70 /libtests
parentdf2f5c6a360bd7512d2280aa9cb582bc0aa622bd (diff)
downloadqpdf-dd4f30226f3d4738e198dfcb944ce4cdc7e50a86.tar.zst
Rework PointerHolder transition to make it smoother
* Don't surprise people with deprecation warnings * Provide detailed instructions and support for the transition
Diffstat (limited to 'libtests')
-rw-r--r--libtests/pointer_holder.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/libtests/pointer_holder.cc b/libtests/pointer_holder.cc
index 87c1fa07..3db2241a 100644
--- a/libtests/pointer_holder.cc
+++ b/libtests/pointer_holder.cc
@@ -1,4 +1,8 @@
-#define NO_POINTERHOLDER_DEPRECATION // we need to test the deprecated API
+// We need to test the deprecated API
+#ifdef POINTERHOLDER_TRANSITION
+# undef POINTERHOLDER_TRANSITION
+#endif
+#define POINTERHOLDER_TRANSITION 0
#include <qpdf/PointerHolder.hh>
#include <iostream>