Commit ea33aca6 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Port some foreach

parent e819a2b8
...@@ -151,7 +151,7 @@ void EngineExplorer::listEngines() ...@@ -151,7 +151,7 @@ void EngineExplorer::listEngines()
return false; return false;
}); });
foreach (const KPluginMetaData &engine, engines) { for (const KPluginMetaData &engine : qAsConst(engines)) {
m_engines->addItem(QIcon::fromTheme(engine.iconName()), engine.pluginId()); m_engines->addItem(QIcon::fromTheme(engine.iconName()), engine.pluginId());
} }
......
...@@ -22,7 +22,7 @@ void listEngines() ...@@ -22,7 +22,7 @@ void listEngines()
int maxLen = 0; int maxLen = 0;
QMap<QString, QString> engines; QMap<QString, QString> engines;
const auto plugins = Plasma::PluginLoader::self()->listDataEngineMetaData(); const auto plugins = Plasma::PluginLoader::self()->listDataEngineMetaData();
foreach (const KPluginMetaData &info, plugins) { for (const KPluginMetaData &info : plugins) {
int len = info.pluginId().length(); int len = info.pluginId().length();
if (len > maxLen) { if (len > maxLen) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment