From ba5fb6916446d8bdf79cba25f08d759bc5595aec Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Tue, 27 Aug 2019 22:10:11 -0400 Subject: Make popping pipeline stack safer Use destructors to pop the pipeline stack, and ensure that code that pops the stack is actually popping the intended thing. --- libqpdf/Pipeline.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libqpdf/Pipeline.cc') diff --git a/libqpdf/Pipeline.cc b/libqpdf/Pipeline.cc index bcd48e46..bd4fb087 100644 --- a/libqpdf/Pipeline.cc +++ b/libqpdf/Pipeline.cc @@ -31,3 +31,9 @@ Pipeline::getNext(bool allow_null) } return this->m->next; } + +std::string +Pipeline::getIdentifier() const +{ + return this->identifier; +} -- cgit v1.2.3-70-g09d2