aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFWriter.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/QPDFWriter.cc
parentf1c6bb97db659faf84e59dbe973b969e9fc1a066 (diff)
downloadqpdf-21d6e3231f627470ee58b06df018f31de9eb3201.tar.zst
Make use of the new Pipeline methods in some places
Diffstat (limited to 'libqpdf/QPDFWriter.cc')
-rw-r--r--libqpdf/QPDFWriter.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libqpdf/QPDFWriter.cc b/libqpdf/QPDFWriter.cc
index 4b2e785a..35041249 100644
--- a/libqpdf/QPDFWriter.cc
+++ b/libqpdf/QPDFWriter.cc
@@ -961,7 +961,7 @@ QPDFWriter::writeBinary(unsigned long long val, unsigned int bytes)
void
QPDFWriter::writeString(std::string const& str)
{
- this->m->pipeline->write(QUtil::unsigned_char_pointer(str), str.length());
+ this->m->pipeline->writeString(str);
}
void
@@ -1736,7 +1736,7 @@ QPDFWriter::unparseObject(
true,
QUtil::unsigned_char_pointer(this->m->cur_data_key),
this->m->cur_data_key.length());
- pl.write(QUtil::unsigned_char_pointer(val), val.length());
+ pl.writeString(val);
pl.finish();
auto buf = bufpl.getBufferSharedPointer();
val = QPDF_String(std::string(