Commit 1a4dcb4aaf987631caa93a9d3a5b42ca439bb6ae
1 parent
ee44aef8
Pl_Buffer starts in a ready state
Showing
3 changed files
with
6 additions
and
1 deletions
libqpdf/Pl_Buffer.cc
| @@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
| 5 | 5 | ||
| 6 | Pl_Buffer::Pl_Buffer(char const* identifier, Pipeline* next) : | 6 | Pl_Buffer::Pl_Buffer(char const* identifier, Pipeline* next) : |
| 7 | Pipeline(identifier, next), | 7 | Pipeline(identifier, next), |
| 8 | - ready(false), | 8 | + ready(true), |
| 9 | total_size(0) | 9 | total_size(0) |
| 10 | { | 10 | { |
| 11 | } | 11 | } |
libtests/buffer.cc
| @@ -63,6 +63,10 @@ int main() | @@ -63,6 +63,10 @@ int main() | ||
| 63 | { | 63 | { |
| 64 | throw std::logic_error("hand-created buffer is not as expected"); | 64 | throw std::logic_error("hand-created buffer is not as expected"); |
| 65 | } | 65 | } |
| 66 | + | ||
| 67 | + Pl_Buffer bp3("bp3"); | ||
| 68 | + b = bp3.getBuffer(); | ||
| 69 | + std::cout << "size: " << b->getSize() << std::endl; | ||
| 66 | } | 70 | } |
| 67 | catch (std::exception& e) | 71 | catch (std::exception& e) |
| 68 | { | 72 | { |