]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/panels/places/placespanel.cpp
Compile without foreach
[dolphin.git] / src / panels / places / placespanel.cpp
index 2e1d09e6b6cf3e3042faee7b61583fa09debc36f..03cf628b4068028a58f57855d16044f9b2b497f8 100644 (file)
@@ -322,7 +322,8 @@ void PlacesPanel::slotViewContextMenuRequested(const QPointF& pos)
     menu.addMenu(iconSizeSubMenu);
 
     menu.addSeparator();
-    foreach (QAction* action, customContextMenuActions()) {
+    const auto actions = customContextMenuActions();
+    for (QAction* action : actions) {
         menu.addAction(action);
     }