mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 19:02:59 +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?
|
||||
cntry = value;
|
||||
state = NoState;
|
||||
for (qint16 i = 0; i < scriptTblSize; i++) {
|
||||
if (QString::fromLatin1(scriptTbl[i].code) == value) {
|
||||
for (qint16 ii = 0; ii < scriptTblSize; ii++) {
|
||||
if (QString::fromLatin1(scriptTbl[ii].code) == value) {
|
||||
script = value;
|
||||
state = CountryState;
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue