forked from qt-creator/qt-creator
Avoid value-list creation when iterating over maps.
Change-Id: I704ba93d01ffababb405bc801f07a845631930cc Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
@@ -336,7 +336,7 @@ QList<Command *> ActionManager::commands()
|
||||
{
|
||||
// transform list of CommandPrivate into list of Command
|
||||
QList<Command *> result;
|
||||
foreach (Command *cmd, d->m_idCmdMap.values())
|
||||
foreach (Command *cmd, d->m_idCmdMap)
|
||||
result << cmd;
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user