/src/qpdf/libqpdf/Pl_Concatenate.cc
Line | Count | Source (jump to first uncovered line) |
1 | | #include <qpdf/Pl_Concatenate.hh> |
2 | | |
3 | | #include <stdexcept> |
4 | | |
5 | | Pl_Concatenate::Pl_Concatenate(char const* identifier, Pipeline* next) : |
6 | 0 | Pipeline(identifier, next) |
7 | 0 | { |
8 | 0 | if (!next) { |
9 | 0 | throw std::logic_error("Attempt to create Pl_Concatenate with nullptr as next"); |
10 | 0 | } |
11 | 0 | } |
12 | | |
13 | | // Must be explicit and not inline -- see QPDF_DLL_CLASS in README-maintainer |
14 | 0 | Pl_Concatenate::~Pl_Concatenate() = default; |
15 | | |
16 | | void |
17 | | Pl_Concatenate::write(unsigned char const* data, size_t len) |
18 | 0 | { |
19 | 0 | next()->write(data, len); |
20 | 0 | } |
21 | | |
22 | | void |
23 | | Pl_Concatenate::finish() |
24 | 0 | { |
25 | 0 | } |
26 | | |
27 | | void |
28 | | Pl_Concatenate::manualFinish() |
29 | 0 | { |
30 | 0 | next()->finish(); |
31 | 0 | } |