summaryrefslogtreecommitdiffstats
path: root/libqpdf/Pipeline.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libqpdf/Pipeline.cc')
-rw-r--r--libqpdf/Pipeline.cc15
1 files changed, 12 insertions, 3 deletions
diff --git a/libqpdf/Pipeline.cc b/libqpdf/Pipeline.cc
index b80b2d67..bcd48e46 100644
--- a/libqpdf/Pipeline.cc
+++ b/libqpdf/Pipeline.cc
@@ -1,9 +1,18 @@
#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),
- next(next)
+ m(new Members(next))
{
}
@@ -14,11 +23,11 @@ Pipeline::~Pipeline()
Pipeline*
Pipeline::getNext(bool allow_null)
{
- if ((next == 0) && (! allow_null))
+ if ((this->m->next == 0) && (! allow_null))
{
throw std::logic_error(
this->identifier +
": Pipeline::getNext() called on pipeline with no next");
}
- return this->next;
+ return this->m->next;
}