aboutsummaryrefslogtreecommitdiffstats
path: root/examples/pdf-create.cc
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pdf-create.cc')
-rw-r--r--examples/pdf-create.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/pdf-create.cc b/examples/pdf-create.cc
index 902c6805..a7b11a50 100644
--- a/examples/pdf-create.cc
+++ b/examples/pdf-create.cc
@@ -39,7 +39,7 @@ ImageProvider::provideStreamData(int objid, int generation,
{
for (int i = 0; i < width * height; ++i)
{
- pipeline->write((unsigned char*)"\xff\x7f\x00", 3);
+ pipeline->write(QUtil::unsigned_char_pointer("\xff\x7f\x00"), 3);
}
pipeline->finish();
}