diff options
author | Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com> | 2010-02-05 13:29:53 (GMT) |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com> | 2010-02-05 13:47:07 (GMT) |
commit | cc1f88b869f23bb2855c1ada0fc6187ca21413b6 (patch) | |
tree | 0785b2ccd3fde321a3a514d9d636df546ee59649 /src/plugins/accessible | |
parent | 919a8b360950718c68b4da68aeb22a402f99ae3b (diff) | |
download | Qt-cc1f88b869f23bb2855c1ada0fc6187ca21413b6.zip Qt-cc1f88b869f23bb2855c1ada0fc6187ca21413b6.tar.gz Qt-cc1f88b869f23bb2855c1ada0fc6187ca21413b6.tar.bz2 |
A few trivial optimizations
Don't use QHash/QMap::values/keys unnecessarily.
Reviewed-by: Alessandro Portale <alessandro.portale@nokia.com>
Diffstat (limited to 'src/plugins/accessible')
-rw-r--r-- | src/plugins/accessible/widgets/qaccessiblewidgets.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/accessible/widgets/qaccessiblewidgets.cpp b/src/plugins/accessible/widgets/qaccessiblewidgets.cpp index ad33d0b..499eb1d 100644 --- a/src/plugins/accessible/widgets/qaccessiblewidgets.cpp +++ b/src/plugins/accessible/widgets/qaccessiblewidgets.cpp @@ -176,7 +176,7 @@ static inline QWidget *mdiAreaNavigate(QWidget *area, int minimumDistance = INT_MAX; QWidget *target = 0; - foreach (QWidget *candidate, candidates.values()) { + foreach (QWidget *candidate, candidates) { switch (relation) { case QAccessible::Up: case QAccessible::Down: |