aboutsummaryrefslogtreecommitdiffstats
path: root/examples/pdf-create.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 /examples/pdf-create.cc
parentf1c6bb97db659faf84e59dbe973b969e9fc1a066 (diff)
downloadqpdf-21d6e3231f627470ee58b06df018f31de9eb3201.tar.zst
Make use of the new Pipeline methods in some places
Diffstat (limited to 'examples/pdf-create.cc')
-rw-r--r--examples/pdf-create.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/pdf-create.cc b/examples/pdf-create.cc
index 6ba76f63..493b0d3d 100644
--- a/examples/pdf-create.cc
+++ b/examples/pdf-create.cc
@@ -118,9 +118,7 @@ ImageProvider::provideStreamData(int objid, int generation, Pipeline* pipeline)
for (size_t i = 0; i < n_stripes; ++i) {
for (size_t j = 0; j < width * stripe_height; ++j) {
- p->write(
- QUtil::unsigned_char_pointer(stripes[i].c_str()),
- stripes[i].length());
+ p->writeString(stripes[i]);
}
}
p->finish();