forked from qt-creator/qt-creator
CorePlugin: Remove foreach / Q_FOREACH usage
Task-number: QTCREATORBUG-27464 Change-Id: I0d0257bbd46f3eec9b11b386d1987156e83a9dac Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -301,7 +301,7 @@ void ModeManager::addAction(QAction *action, int priority)
|
||||
|
||||
// Count the number of commands with a higher priority
|
||||
int index = 0;
|
||||
foreach (int p, d->m_actions) {
|
||||
for (int p : qAsConst(d->m_actions)) {
|
||||
if (p > priority)
|
||||
++index;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user