diff --git a/runnercontext.cpp b/runnercontext.cpp index c47dbf27c..02a4b8bc1 100644 --- a/runnercontext.cpp +++ b/runnercontext.cpp @@ -516,7 +516,7 @@ void RunnerContext::restore(const KConfigGroup &config) { const QStringList cfgList = config.readEntry("LaunchCounts", QStringList()); - QRegExp r("(\\d*) (.*)"); + const QRegExp r("(\\d*) (.*)"); foreach (const QString& entry, cfgList) { r.indexIn(entry); int count = r.cap(1).toInt();