Verified Commit 3166b5de authored by ivan tkachenko's avatar ivan tkachenko
Browse files

[widgetexplorer] Port away from foreach macro

parent 4455344d
Pipeline #224965 passed with stage
in 8 minutes and 52 seconds
......@@ -278,7 +278,8 @@ void WidgetExplorerPrivate::addContainment(Containment *containment)
QObject::connect(containment, SIGNAL(appletAdded(Plasma::Applet *)), q, SLOT(appletAdded(Plasma::Applet *)));
QObject::connect(containment, SIGNAL(appletRemoved(Plasma::Applet *)), q, SLOT(appletRemoved(Plasma::Applet *)));
foreach (Applet *applet, containment->applets()) {
const QList<Applet *> applets = containment->applets();
for (auto applet : applets) {
if (applet->pluginMetaData().isValid()) {
runningApplets[applet->pluginMetaData().pluginId()]++;
} else {
......
Supports Markdown
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