From 9e7eb26ada6a70d52e80a6392278e2ece0548f33 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 8 Jan 2014 14:59:58 +0300 Subject: fix code style. --- src/input/keyboardconfig.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/input/keyboardconfig.cpp') diff --git a/src/input/keyboardconfig.cpp b/src/input/keyboardconfig.cpp index a5e3674ed..6cf524842 100644 --- a/src/input/keyboardconfig.cpp +++ b/src/input/keyboardconfig.cpp @@ -251,7 +251,6 @@ void KeyboardConfig::handleRepeat(const int time) { bool repeat(false); const int key = (*it).first; - int &keyTime = (*it).second; if (key >= 0) { if (mActiveKeys && mActiveKeys[key]) @@ -264,6 +263,7 @@ void KeyboardConfig::handleRepeat(const int time) } if (repeat) { + int &keyTime = (*it).second; if (time > keyTime && abs(time - keyTime) > static_cast(mRepeatTime)) { -- cgit v1.2.3-70-g09d2