diff options
author | con <qtc-committer@nokia.com> | 2009-12-09 15:30:23 +0100 |
---|---|---|
committer | con <qtc-committer@nokia.com> | 2009-12-09 15:31:01 +0100 |
commit | 3ab0a28cca0c20baa4b21a3d08223065a1e3be94 (patch) | |
tree | 2e3fabc7b0771aa279230e1001ae9345189441e3 /src/plugins/coreplugin/modemanager.cpp | |
parent | 9097149ceea07d96716ca9d3ddbb32ec1b933a61 (diff) | |
download | qt-creator-3ab0a28cca0c20baa4b21a3d08223065a1e3be94.tar.gz |
Less use of slow methods.
Diffstat (limited to 'src/plugins/coreplugin/modemanager.cpp')
-rw-r--r-- | src/plugins/coreplugin/modemanager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/coreplugin/modemanager.cpp b/src/plugins/coreplugin/modemanager.cpp index 66b36678db..b8334e3733 100644 --- a/src/plugins/coreplugin/modemanager.cpp +++ b/src/plugins/coreplugin/modemanager.cpp @@ -194,9 +194,10 @@ void ModeManager::addAction(Command *command, int priority, QMenu *menu) // Count the number of commands with a higher priority int index = 0; - foreach (int p, m_actions.values()) + foreach (int p, m_actions) { if (p > priority) ++index; + } m_actionBar->insertAction(index, command->action(), menu); } |