macros: Remove foreach / Q_FOREACH usage

Task-number: QTCREATORBUG-27464
Change-Id: Id779aaf869406571288519083883ab57e5c29cec
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Artem Sokolovskii
2022-06-02 14:23:03 +02:00
parent 7020b0a44a
commit 30e60e9979
14 changed files with 33 additions and 30 deletions

View File

@@ -53,8 +53,8 @@ ActionMacroHandler::ActionMacroHandler()
this, &ActionMacroHandler::addCommand);
// Register all existing scriptable actions
QList<Command *> commands = ActionManager::commands();
foreach (Command *command, commands) {
const QList<Command *> commands = ActionManager::commands();
for (Command *command : commands) {
if (command->isScriptable())
registerCommand(command->id());
}