summaryrefslogtreecommitdiffstats
path: root/src/plugins/accessible
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>2010-02-05 13:29:53 (GMT)
committerThorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>2010-02-05 13:47:07 (GMT)
commitcc1f88b869f23bb2855c1ada0fc6187ca21413b6 (patch)
tree0785b2ccd3fde321a3a514d9d636df546ee59649 /src/plugins/accessible
parent919a8b360950718c68b4da68aeb22a402f99ae3b (diff)
downloadQt-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.cpp2
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: