From 21d6e3231f627470ee58b06df018f31de9eb3201 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Tue, 3 May 2022 18:09:49 -0400 Subject: Make use of the new Pipeline methods in some places --- examples/pdf-create.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'examples/pdf-create.cc') 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(); -- cgit v1.2.3-54-g00ecf