diff options
author | Jay Berkenbilt <ejb@ql.org> | 2020-04-03 17:59:29 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2020-04-03 18:17:57 +0200 |
commit | 97de12343b908d937f4bb0562cd739896ce66d34 (patch) | |
tree | 4d1b76bc416c0064cceac86cad29addd0e99e1a2 /libqpdf | |
parent | cc755e37f7b559038e2d23acb6359814fb998286 (diff) | |
download | qpdf-97de12343b908d937f4bb0562cd739896ce66d34.tar.zst |
Performance: remove Members indirection for Pipeline
Diffstat (limited to 'libqpdf')
-rw-r--r-- | libqpdf/Pipeline.cc | 15 |
1 files changed, 3 insertions, 12 deletions
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 <qpdf/Pipeline.hh> #include <stdexcept> -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 |