summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qfontsubset.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2016-04-26 16:40:37 -0700
committerJani Heikkinen <jani.heikkinen@qt.io>2016-05-26 18:02:49 +0000
commit5c2ff22ba117f295718c529198ab42ee4646d90c (patch)
treebc1a9625b580dde5dd961203b944a18531d306bf /src/gui/text/qfontsubset.cpp
parent2fb026d58b45f50ed7d5666de58c9184e81bbc60 (diff)
Use void instead of uchar in the endian-swapping function parametersv5.7.0-rc1
This allows us to pass pointers to storage that is not an array of uchar, which it hardly ever is. Change-Id: Ifea6e497f11a461db432ffff14490d2c2df21906 Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com> Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'src/gui/text/qfontsubset.cpp')
-rw-r--r--src/gui/text/qfontsubset.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/text/qfontsubset.cpp b/src/gui/text/qfontsubset.cpp
index f591b4333c..c8f0393084 100644
--- a/src/gui/text/qfontsubset.cpp
+++ b/src/gui/text/qfontsubset.cpp
@@ -1145,7 +1145,7 @@ static QByteArray bindFont(const QVector<QTtfTable>& _tables)
// calculate the fonts checksum and qToBigEndian into 'head's checksum_adjust
quint32 checksum_adjust = 0xB1B0AFBA - checksum(font);
- qToBigEndian(checksum_adjust, (uchar *)font.data() + head_offset + 8);
+ qToBigEndian(checksum_adjust, font.data() + head_offset + 8);
return font;
}