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()
|
||||
QList<QStringList>::iterator it = d->encodingsByScript.begin();
|
||||
while (it != d->encodingsByScript.end()) {
|
||||
QList<QStringList>::const_iterator it = d->encodingsByScript.constBegin();
|
||||
while (it != d->encodingsByScript.constEnd()) {
|
||||
const QStringList &list = *it;
|
||||
if (list.size() == 2) {
|
||||
int i = 0;
|
||||
|
@ -309,7 +309,7 @@ QList<QStringList> KCharsets::encodingsByScript() const
|
|||
d->encodingsByScript.append(QStringList() << d->kOtherGroup << encoding);
|
||||
}
|
||||
|
||||
it = d->encodingsByScript.begin();
|
||||
it = d->encodingsByScript.constBegin();
|
||||
} else {
|
||||
it++;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue