aboutsummaryrefslogtreecommitdiffstats
path: root/include/qpdf/Pipeline.hh
diff options
context:
space:
mode:
Diffstat (limited to 'include/qpdf/Pipeline.hh')
-rw-r--r--include/qpdf/Pipeline.hh10
1 files changed, 2 insertions, 8 deletions
diff --git a/include/qpdf/Pipeline.hh b/include/qpdf/Pipeline.hh
index 09ec0925..8c1dfe17 100644
--- a/include/qpdf/Pipeline.hh
+++ b/include/qpdf/Pipeline.hh
@@ -63,15 +63,9 @@ class QPDF_DLL_CLASS Pipeline
// Subclasses should implement write and finish to do their jobs
// and then, if they are not end-of-line pipelines, call
- // getNext()->write or getNext()->finish. It would be really nice
- // if write could take unsigned char const*, but this would make
- // it much more difficult to write pipelines around legacy
- // interfaces whose calls don't want pointers to const data. As a
- // rule, pipelines should generally not be modifying the data
- // passed to them. They should, instead, create new data to pass
- // downstream.
+ // getNext()->write or getNext()->finish.
QPDF_DLL
- virtual void write(unsigned char* data, size_t len) = 0;
+ virtual void write(unsigned char const* data, size_t len) = 0;
QPDF_DLL
virtual void finish() = 0;
QPDF_DLL