summaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFObjectHandle.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-05-04 00:09:49 +0200
committerJay Berkenbilt <ejb@ql.org>2022-05-04 00:31:23 +0200
commit21d6e3231f627470ee58b06df018f31de9eb3201 (patch)
tree2ab80c1061757eae8694ebd36bd6eef0868276d4 /libqpdf/QPDFObjectHandle.cc
parentf1c6bb97db659faf84e59dbe973b969e9fc1a066 (diff)
downloadqpdf-21d6e3231f627470ee58b06df018f31de9eb3201.tar.zst
Make use of the new Pipeline methods in some places
Diffstat (limited to 'libqpdf/QPDFObjectHandle.cc')
-rw-r--r--libqpdf/QPDFObjectHandle.cc4
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()) + " " +