summaryrefslogtreecommitdiff
path: root/src/joystick.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/joystick.cpp')
-rw-r--r--src/joystick.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/joystick.cpp b/src/joystick.cpp
index 3b88e5668..42dd14bd1 100644
--- a/src/joystick.cpp
+++ b/src/joystick.cpp
@@ -334,8 +334,7 @@ bool Joystick::validate() const
void Joystick::handleRepeat(const int time)
{
- for (KeyTimeMapIter it = mKeyTimeMap.begin(), it_end = mKeyTimeMap.end();
- it != it_end; ++ it)
+ FOR_EACH (KeyTimeMapIter, it, mKeyTimeMap)
{
bool repeat(false);
const int key = (*it).first;