mirror of
https://github.com/qpdf/qpdf.git
synced 2024-11-02 11:46:35 +00:00
12f1eb15ca
Run this: for i in **/*.cc **/*.c **/*.h **/*.hh; do clang-format < $i >| $i.new && mv $i.new $i done
31 lines
522 B
C++
31 lines
522 B
C++
#include <qpdf/Pipeline.hh>
|
|
|
|
#include <stdexcept>
|
|
|
|
Pipeline::Pipeline(char const* identifier, Pipeline* next) :
|
|
identifier(identifier),
|
|
next(next)
|
|
{
|
|
}
|
|
|
|
Pipeline::~Pipeline()
|
|
{
|
|
}
|
|
|
|
Pipeline*
|
|
Pipeline::getNext(bool allow_null)
|
|
{
|
|
if ((this->next == 0) && (!allow_null)) {
|
|
throw std::logic_error(
|
|
this->identifier +
|
|
": Pipeline::getNext() called on pipeline with no next");
|
|
}
|
|
return this->next;
|
|
}
|
|
|
|
std::string
|
|
Pipeline::getIdentifier() const
|
|
{
|
|
return this->identifier;
|
|
}
|