diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-02-06 17:40:24 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-02-07 23:38:22 +0100 |
commit | c62e8e2b285b9b401d6add5a7a0da98c7ea86373 (patch) | |
tree | 040e8fa45d6b459200e57e26fbacad6ddd7414f1 /examples/pdf-filter-tokens.cc | |
parent | 3f22bea084d8d64cba1a433726abd709caf8456b (diff) | |
download | qpdf-c62e8e2b285b9b401d6add5a7a0da98c7ea86373.tar.zst |
Update for clean compile with POINTERHOLDER_TRANSITION=2
Diffstat (limited to 'examples/pdf-filter-tokens.cc')
-rw-r--r-- | examples/pdf-filter-tokens.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/pdf-filter-tokens.cc b/examples/pdf-filter-tokens.cc index e764a86a..baf7b3dc 100644 --- a/examples/pdf-filter-tokens.cc +++ b/examples/pdf-filter-tokens.cc @@ -220,8 +220,11 @@ int main(int argc, char* argv[]) // applied. See comments on the filters for additional // details. QPDFPageObjectHelper& page(*iter); - page.addContentTokenFilter(new StringReverser); - page.addContentTokenFilter(new ColorToGray); + page.addContentTokenFilter( + PointerHolder<QPDFObjectHandle::TokenFilter>( + new StringReverser)); + page.addContentTokenFilter( + PointerHolder<QPDFObjectHandle::TokenFilter>(new ColorToGray)); } QPDFWriter w(pdf, outfilename); |