aboutsummaryrefslogtreecommitdiffstats
path: root/examples/pdf-create.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2013-02-24 03:46:21 +0100
committerJay Berkenbilt <ejb@ql.org>2013-03-04 22:45:16 +0100
commit30027481f7f9e9191f7c8deea51850b7a76b1b1f (patch)
tree815af293c2f6e38994e6096a4499be0dc9a476f9 /examples/pdf-create.cc
parentbabb47948a408ebad12c452ba3fdd78782360167 (diff)
downloadqpdf-30027481f7f9e9191f7c8deea51850b7a76b1b1f.tar.zst
Remove all old-style casts from C++ code
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();
}