diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-05-04 00:09:49 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-05-04 00:31:23 +0200 |
commit | 21d6e3231f627470ee58b06df018f31de9eb3201 (patch) | |
tree | 2ab80c1061757eae8694ebd36bd6eef0868276d4 /libqpdf/QPDFObjectHandle.cc | |
parent | f1c6bb97db659faf84e59dbe973b969e9fc1a066 (diff) | |
download | qpdf-21d6e3231f627470ee58b06df018f31de9eb3201.tar.zst |
Make use of the new Pipeline methods in some places
Diffstat (limited to 'libqpdf/QPDFObjectHandle.cc')
-rw-r--r-- | libqpdf/QPDFObjectHandle.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libqpdf/QPDFObjectHandle.cc b/libqpdf/QPDFObjectHandle.cc index e1c9488a..05a0f30d 100644 --- a/libqpdf/QPDFObjectHandle.cc +++ b/libqpdf/QPDFObjectHandle.cc @@ -127,7 +127,7 @@ QPDFObjectHandle::TokenFilter::write(char const* data, size_t len) return; } if (len) { - this->pipeline->write(QUtil::unsigned_char_pointer(data), len); + this->pipeline->write(data, len); } } @@ -1857,7 +1857,7 @@ QPDFObjectHandle::pipeContentStreams( Pl_Buffer buf("concatenated content stream buffer"); for (auto stream: streams) { if (need_newline) { - buf.write(QUtil::unsigned_char_pointer("\n"), 1); + buf.writeCStr("\n"); } LastChar lc(&buf); std::string og = QUtil::int_to_string(stream.getObjectID()) + " " + |