From cd24ed1c6c5aab358b4f18d262bd4c00c0ebfe96 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 16 Sep 2012 19:28:16 +0300 Subject: Add const to variables with type size_t. --- src/inputmanager.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/inputmanager.cpp') 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++) { -- cgit v1.2.3-70-g09d2