From a24327cd50ef17b953ecb908d260b73460158107 Mon Sep 17 00:00:00 2001 From: Alexander Lohnau Date: Fri, 23 Oct 2020 19:48:22 +0200 Subject: Compile without foreach --- src/panels/folders/treeviewcontextmenu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/panels/folders/treeviewcontextmenu.cpp') diff --git a/src/panels/folders/treeviewcontextmenu.cpp b/src/panels/folders/treeviewcontextmenu.cpp index e6cef5441..f4181d064 100644 --- a/src/panels/folders/treeviewcontextmenu.cpp +++ b/src/panels/folders/treeviewcontextmenu.cpp @@ -139,10 +139,10 @@ void TreeViewContextMenu::open(const QPoint& pos) popup->addAction(propertiesAction); } - QList customActions = m_parent->customContextMenuActions(); + const QList customActions = m_parent->customContextMenuActions(); if (!customActions.isEmpty()) { popup->addSeparator(); - foreach (QAction* action, customActions) { + for (QAction* action : customActions) { popup->addAction(action); } } -- cgit v1.3