summaryrefslogtreecommitdiff
path: root/src/inputmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-24 22:48:35 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-24 22:48:35 +0300
commitb474de4a54c9b1d4d863971e40b807588d554436 (patch)
tree761e71f86ea232d1688ee2838bd2294c59dea947 /src/inputmanager.cpp
parenta316d537dce50f4b4e1e10f5c26a7851baddbd8b (diff)
downloadmv-b474de4a54c9b1d4d863971e40b807588d554436.tar.gz
mv-b474de4a54c9b1d4d863971e40b807588d554436.tar.bz2
mv-b474de4a54c9b1d4d863971e40b807588d554436.tar.xz
mv-b474de4a54c9b1d4d863971e40b807588d554436.zip
replace defines to consts.
Diffstat (limited to 'src/inputmanager.cpp')
-rw-r--r--src/inputmanager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/inputmanager.cpp b/src/inputmanager.cpp
index cc6492817..c22e9192f 100644
--- a/src/inputmanager.cpp
+++ b/src/inputmanager.cpp
@@ -72,9 +72,9 @@ InputManager::InputManager() :
void InputManager::init()
{
- for (int i = 0; i < Input::KEY_TOTAL; i++)
+ for (unsigned int i = 0; i < Input::KEY_TOTAL; i++)
{
- for (int f = 0; f < KeyFunctionSize; f ++)
+ for (unsigned int f = 0; f < KeyFunctionSize; f ++)
{
mKey[i].values[f].type = INPUT_UNKNOWN;
mKey[i].values[f].value = -1;
@@ -108,7 +108,7 @@ void InputManager::retrieve()
StringVect keys;
splitToStringVector(keys, keyStr, ',');
- int i2 = 0;
+ unsigned int i2 = 0;
for (StringVectCIter it = keys.begin(), it_end = keys.end();
it != it_end && i2 < KeyFunctionSize; ++ it)
{