summaryrefslogtreecommitdiff
path: root/src/gui/text/qfontsubset.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2015-03-05 22:25:45 -0800
committerThiago Macieira <thiago.macieira@intel.com>2015-03-12 04:23:50 +0000
commitce30394686a4ac2cfbda560c5d7113432d84314e (patch)
treecb9a52e376f3233e4c78d7e657f9243e454d955c /src/gui/text/qfontsubset.cpp
parent6025c36d014d77091d09271d68154261d1977761 (diff)
downloadqtbase-ce30394686a4ac2cfbda560c5d7113432d84314e.tar.gz
QtGui: Fix const correctness in old style casts
Found with GCC's -Wcast-qual. Change-Id: Ia0aac2f09e9245339951ffff13c946844bc31eb8 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.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 24dda422fc..9f652084be 100644
--- a/src/gui/text/qfontsubset.cpp
+++ b/src/gui/text/qfontsubset.cpp
@@ -420,7 +420,7 @@ static quint32 checksum(const QByteArray &table)
{
quint32 sum = 0;
int offset = 0;
- const uchar *d = (uchar *)table.constData();
+ const uchar *d = (const uchar *)table.constData();
while (offset <= table.size()-3) {
sum += qFromBigEndian<quint32>(d + offset);
offset += 4;