mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-25 03:12:56 +00:00
avoid shadowing outer-scope variable in qt_splitLocaleName() function
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
394ef1d06b
commit
3dca62b0c3
1 changed files with 2 additions and 2 deletions
|
@ -275,8 +275,8 @@ bool qt_splitLocaleName(const QString &name, QString &lang, QString &script, QSt
|
||||||
// if it wasn't a script, maybe it is a country then?
|
// if it wasn't a script, maybe it is a country then?
|
||||||
cntry = value;
|
cntry = value;
|
||||||
state = NoState;
|
state = NoState;
|
||||||
for (qint16 i = 0; i < scriptTblSize; i++) {
|
for (qint16 ii = 0; ii < scriptTblSize; ii++) {
|
||||||
if (QString::fromLatin1(scriptTbl[i].code) == value) {
|
if (QString::fromLatin1(scriptTbl[ii].code) == value) {
|
||||||
script = value;
|
script = value;
|
||||||
state = CountryState;
|
state = CountryState;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue