[widgetexplorer] Port away from foreach macro

wilder-5.26
ivan tkachenko 4 years ago
parent 4455344d64
commit 3166b5de4d
No known key found for this signature in database
GPG Key ID: AF72731B7C654CB3
  1. 3
      components/shellprivate/widgetexplorer/widgetexplorer.cpp

@ -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 {

Loading…
Cancel
Save