QMLPlugins: Remove foreach / Q_FOREACH usage

Task-number: QTCREATORBUG-27464
Change-Id: Ie3e3ec9fdaea856943e5325cabd21e52bf290e70
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
Artem Sokolovskii
2022-05-31 16:42:57 +02:00
parent 57e705b616
commit 92b3a51358
12 changed files with 38 additions and 23 deletions

View File

@@ -137,8 +137,8 @@ void QmlProfilerStatisticsView::contextMenuEvent(QContextMenuEvent *ev)
QPoint position = ev->globalPos();
QList <QAction *> commonActions = QmlProfilerTool::profilerContextMenuActions();
foreach (QAction *act, commonActions)
const QList <QAction *> commonActions = QmlProfilerTool::profilerContextMenuActions();
for (QAction *act : commonActions)
menu.addAction(act);
if (mouseOnTable(position)) {