summaryrefslogtreecommitdiff
path: root/src/inputmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-16 19:28:16 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-16 19:28:16 +0300
commitcd24ed1c6c5aab358b4f18d262bd4c00c0ebfe96 (patch)
treefdda7e2c3d93b35771f6eb79c22dce9301082f19 /src/inputmanager.cpp
parentf8fc3380197c078a6dcff02351d835c3022411e1 (diff)
downloadplus-cd24ed1c6c5aab358b4f18d262bd4c00c0ebfe96.tar.gz
plus-cd24ed1c6c5aab358b4f18d262bd4c00c0ebfe96.tar.bz2
plus-cd24ed1c6c5aab358b4f18d262bd4c00c0ebfe96.tar.xz
plus-cd24ed1c6c5aab358b4f18d262bd4c00c0ebfe96.zip
Add const to variables with type size_t.
Diffstat (limited to 'src/inputmanager.cpp')
-rw-r--r--src/inputmanager.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/inputmanager.cpp b/src/inputmanager.cpp
index 969867a83..a5994907e 100644
--- a/src/inputmanager.cpp
+++ b/src/inputmanager.cpp
@@ -228,13 +228,11 @@ void InputManager::makeDefault(const int i)
bool InputManager::hasConflicts(int &key1, int &key2) const
{
- size_t i;
- size_t j;
/**
* No need to parse the square matrix: only check one triangle
* that's enough to detect conflicts
*/
- for (i = 0; i < Input::KEY_TOTAL; i++)
+ for (int i = 0; i < Input::KEY_TOTAL; i++)
{
if (!*keyData[i].configField)
continue;
@@ -244,6 +242,7 @@ bool InputManager::hasConflicts(int &key1, int &key2) const
if (mKey[i].values[i2].value == Input::KEY_NO_VALUE)
continue;
+ size_t j;
for (j = i, j++; j < Input::KEY_TOTAL; j++)
{