[Orxonox-commit 3627] r8312 - in code/branches/kicklib2/src/libraries/core: . input
rgrieder at orxonox.net
rgrieder at orxonox.net
Sat Apr 23 02:28:25 CEST 2011
Author: rgrieder
Date: 2011-04-23 02:28:24 +0200 (Sat, 23 Apr 2011)
New Revision: 8312
Modified:
code/branches/kicklib2/src/libraries/core/ConfigValueContainer.cc
code/branches/kicklib2/src/libraries/core/input/KeyBinder.cc
Log:
Fixed warning and removed unreachable and strange line of code.
Modified: code/branches/kicklib2/src/libraries/core/ConfigValueContainer.cc
===================================================================
--- code/branches/kicklib2/src/libraries/core/ConfigValueContainer.cc 2011-04-22 23:26:52 UTC (rev 8311)
+++ code/branches/kicklib2/src/libraries/core/ConfigValueContainer.cc 2011-04-23 00:28:24 UTC (rev 8312)
@@ -157,7 +157,6 @@
if (this->bIsVector_)
{
return this->callFunctionWithIndex(&ConfigValueContainer::tset, input);
- return false;
}
else
{
Modified: code/branches/kicklib2/src/libraries/core/input/KeyBinder.cc
===================================================================
--- code/branches/kicklib2/src/libraries/core/input/KeyBinder.cc 2011-04-22 23:26:52 UTC (rev 8311)
+++ code/branches/kicklib2/src/libraries/core/input/KeyBinder.cc 2011-04-23 00:28:24 UTC (rev 8312)
@@ -397,7 +397,7 @@
// iterate over all modes
for (int mode_index = 0; mode_index < 3; ++mode_index)
{
- if (mode_index == (unsigned int)new_mode) // skip commands that are already in the desired mode
+ if (mode_index == new_mode) // skip commands that are already in the desired mode
continue;
// iterate over all commands of the given mode at the given button
More information about the Orxonox-commit
mailing list