diff options
author | m-holger <m-holger@kubitscheck.org> | 2023-05-20 14:24:10 +0200 |
---|---|---|
committer | m-holger <m-holger@kubitscheck.org> | 2023-05-20 16:41:40 +0200 |
commit | 41ec7eda54e2263eeb1aee4c3a0616c9c2777fb7 (patch) | |
tree | cb151a0c0d9eaf79f3f075879751cc89f98d6f4e /libqpdf/QPDFWriter.cc | |
parent | d0682f0f609e979ba085d93a1a0d8e0559f739bb (diff) | |
download | qpdf-41ec7eda54e2263eeb1aee4c3a0616c9c2777fb7.tar.zst |
Use auto when initialializing with new
Diffstat (limited to 'libqpdf/QPDFWriter.cc')
-rw-r--r-- | libqpdf/QPDFWriter.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libqpdf/QPDFWriter.cc b/libqpdf/QPDFWriter.cc index 56b4e1ef..a5a54cc7 100644 --- a/libqpdf/QPDFWriter.cc +++ b/libqpdf/QPDFWriter.cc @@ -997,7 +997,7 @@ void QPDFWriter::activatePipelineStack(PipelinePopper& pp) { std::string stack_id("stack " + std::to_string(this->m->next_stack_id)); - Pl_Count* c = + auto* c = new Pl_Count(stack_id.c_str(), this->m->pipeline_stack.back()); ++this->m->next_stack_id; this->m->pipeline_stack.push_back(c); @@ -1030,7 +1030,7 @@ QPDFWriter::PipelinePopper::~PipelinePopper() qw->m->md5_pipeline = nullptr; } qw->m->pipeline_stack.pop_back(); - Pl_Buffer* buf = dynamic_cast<Pl_Buffer*>(p); + auto* buf = dynamic_cast<Pl_Buffer*>(p); if (bp && buf) { *bp = buf->getBufferSharedPointer(); } |