From 97de12343b908d937f4bb0562cd739896ce66d34 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Fri, 3 Apr 2020 11:59:29 -0400 Subject: Performance: remove Members indirection for Pipeline --- libqpdf/Pipeline.cc | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'libqpdf/Pipeline.cc') diff --git a/libqpdf/Pipeline.cc b/libqpdf/Pipeline.cc index bd4fb087..7939eb6d 100644 --- a/libqpdf/Pipeline.cc +++ b/libqpdf/Pipeline.cc @@ -1,18 +1,9 @@ #include #include -Pipeline::Members::Members(Pipeline* next) : - next(next) -{ -} - -Pipeline::Members::~Members() -{ -} - Pipeline::Pipeline(char const* identifier, Pipeline* next) : identifier(identifier), - m(new Members(next)) + next(next) { } @@ -23,13 +14,13 @@ Pipeline::~Pipeline() Pipeline* Pipeline::getNext(bool allow_null) { - if ((this->m->next == 0) && (! allow_null)) + if ((this->next == 0) && (! allow_null)) { throw std::logic_error( this->identifier + ": Pipeline::getNext() called on pipeline with no next"); } - return this->m->next; + return this->next; } std::string -- cgit v1.2.3-54-g00ecf