diff options
author | axis <qt-info@nokia.com> | 2009-07-06 07:23:40 (GMT) |
---|---|---|
committer | axis <qt-info@nokia.com> | 2009-07-06 07:43:45 (GMT) |
commit | ad51d58450eaf0a0d4fccecfc479e719f5e3ff9b (patch) | |
tree | cd43225283969334fe3e8aabb9efb453aa25d4a0 /src/gui/text | |
parent | 6725d82984107997fd865b2158b7f51931653a71 (diff) | |
download | Qt-ad51d58450eaf0a0d4fccecfc479e719f5e3ff9b.zip Qt-ad51d58450eaf0a0d4fccecfc479e719f5e3ff9b.tar.gz Qt-ad51d58450eaf0a0d4fccecfc479e719f5e3ff9b.tar.bz2 |
Removed pointless variables to silence warnings from RVCT.
Diffstat (limited to 'src/gui/text')
-rw-r--r-- | src/gui/text/qfontengine.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/text/qfontengine.cpp b/src/gui/text/qfontengine.cpp index 06d3516..d82b01f 100644 --- a/src/gui/text/qfontengine.cpp +++ b/src/gui/text/qfontengine.cpp @@ -1043,9 +1043,8 @@ quint32 QFontEngine::getTrueTypeGlyphIndex(const uchar *cmap, uint unicode) return 0; quint16 segCountX2 = qFromBigEndian<quint16>(cmap + 6); const unsigned char *ends = cmap + 14; - quint16 endIndex = 0; int i = 0; - for (; i < segCountX2/2 && (endIndex = qFromBigEndian<quint16>(ends + 2*i)) < unicode; i++) {} + for (; i < segCountX2/2 && qFromBigEndian<quint16>(ends + 2*i) < unicode; i++) {} const unsigned char *idx = ends + segCountX2 + 2 + 2*i; quint16 startIndex = qFromBigEndian<quint16>(idx); |