aboutsummaryrefslogtreecommitdiffstats
path: root/examples/pdf-custom-filter.cc
diff options
context:
space:
mode:
authorm-holger <m-holger@kubitscheck.org>2023-05-20 14:24:10 +0200
committerm-holger <m-holger@kubitscheck.org>2023-05-20 16:41:40 +0200
commit41ec7eda54e2263eeb1aee4c3a0616c9c2777fb7 (patch)
treecb151a0c0d9eaf79f3f075879751cc89f98d6f4e /examples/pdf-custom-filter.cc
parentd0682f0f609e979ba085d93a1a0d8e0559f739bb (diff)
downloadqpdf-41ec7eda54e2263eeb1aee4c3a0616c9c2777fb7.tar.zst
Use auto when initialializing with new
Diffstat (limited to 'examples/pdf-custom-filter.cc')
-rw-r--r--examples/pdf-custom-filter.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/pdf-custom-filter.cc b/examples/pdf-custom-filter.cc
index 2310a687..f6977a21 100644
--- a/examples/pdf-custom-filter.cc
+++ b/examples/pdf-custom-filter.cc
@@ -409,7 +409,7 @@ process(
// Create a single StreamReplacer instance. The interface requires
// a std::shared_ptr in various places, so allocate a StreamReplacer
// and stash it in a std::shared_ptr.
- StreamReplacer* replacer = new StreamReplacer(&qpdf);
+ auto* replacer = new StreamReplacer(&qpdf);
std::shared_ptr<QPDFObjectHandle::StreamDataProvider> p(replacer);
for (auto& o: qpdf.getAllObjects()) {