Fix warning for uninitialized variable
Reviewed-by: Eskil (cherry picked from commit 94913c337a388e3d5938ece3a460f1f6e9590cd5) Change-Id: Ie3c0986a3f5c70a654d9f14c3fae42b528c06b9e Reviewed-on: http://codereview.qt.nokia.com/1632 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
This commit is contained in:
parent
6ab8ecb002
commit
d29401ebad
@ -323,7 +323,7 @@ static QChar::Direction skipBoundryNeutrals(QScriptAnalysis *analysis,
|
||||
const ushort *unicode, int length,
|
||||
int &sor, int &eor, QBidiControl &control)
|
||||
{
|
||||
QChar::Direction dir;
|
||||
QChar::Direction dir = control.basicDirection();
|
||||
int level = sor > 0 ? analysis[sor - 1].bidiLevel : control.level;
|
||||
while (sor < length) {
|
||||
dir = QChar::direction(unicode[sor]);
|
||||
|
Loading…
Reference in New Issue
Block a user