mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00
kdecore: const-ify iterator in KCharsets::encodingsByScript()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
3e4db45b42
commit
9cac859359
1 changed files with 3 additions and 3 deletions
|
@ -291,8 +291,8 @@ QList<QStringList> KCharsets::encodingsByScript() const
|
||||||
}
|
}
|
||||||
|
|
||||||
// almost the same kung-fu as in descriptiveEncodingNames()
|
// almost the same kung-fu as in descriptiveEncodingNames()
|
||||||
QList<QStringList>::iterator it = d->encodingsByScript.begin();
|
QList<QStringList>::const_iterator it = d->encodingsByScript.constBegin();
|
||||||
while (it != d->encodingsByScript.end()) {
|
while (it != d->encodingsByScript.constEnd()) {
|
||||||
const QStringList &list = *it;
|
const QStringList &list = *it;
|
||||||
if (list.size() == 2) {
|
if (list.size() == 2) {
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
@ -309,7 +309,7 @@ QList<QStringList> KCharsets::encodingsByScript() const
|
||||||
d->encodingsByScript.append(QStringList() << d->kOtherGroup << encoding);
|
d->encodingsByScript.append(QStringList() << d->kOtherGroup << encoding);
|
||||||
}
|
}
|
||||||
|
|
||||||
it = d->encodingsByScript.begin();
|
it = d->encodingsByScript.constBegin();
|
||||||
} else {
|
} else {
|
||||||
it++;
|
it++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue