const'ify

svn path=/trunk/KDE/kdelibs/; revision=992157
This commit is contained in:
Laurent Montel 2009-07-06 11:37:02 +00:00
parent 998d33bfd3
commit 5c1bd9571b

View File

@ -399,10 +399,10 @@ QueryMatch RunnerContext::match(const QString &id) const
void RunnerContext::restore(const KConfigGroup &config) void RunnerContext::restore(const KConfigGroup &config)
{ {
QStringList cfgList = config.readEntry("LaunchCounts", QStringList()); const QStringList cfgList = config.readEntry("LaunchCounts", QStringList());
QRegExp r("(\\d*) (.*)"); const QRegExp r("(\\d*) (.*)");
foreach (QString entry, cfgList) { foreach (const QString& entry, cfgList) {
r.indexIn(entry); r.indexIn(entry);
int count = r.cap(1).toInt(); int count = r.cap(1).toInt();
QString id = r.cap(2); QString id = r.cap(2);