Avoid value-list creation when iterating over maps.

Change-Id: I704ba93d01ffababb405bc801f07a845631930cc
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
Friedemann Kleint
2013-12-16 15:54:02 +01:00
parent 6c56a065d9
commit dc6b28366c
5 changed files with 13 additions and 13 deletions

View File

@@ -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;
}