summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-04-20 01:04:45 +0300
committerAndrei Karas <akaras@inbox.ru>2012-04-20 01:04:45 +0300
commitcac6971864965008456188f96008e5711d214a32 (patch)
tree2164fbf9c0041a758e0e3e85b163354976dbc9f8
parent0b7e752bd177c90a05ca752fa31810f9e34c432c (diff)
downloadplus-cac6971864965008456188f96008e5711d214a32.tar.gz
plus-cac6971864965008456188f96008e5711d214a32.tar.bz2
plus-cac6971864965008456188f96008e5711d214a32.tar.xz
plus-cac6971864965008456188f96008e5711d214a32.zip
Fix code style.
-rw-r--r--src/client.cpp10
-rw-r--r--src/gui/widgets/dropdown.cpp2
-rw-r--r--src/inputmanager.cpp2
3 files changed, 10 insertions, 4 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 077b195c1..7c059d968 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -863,14 +863,20 @@ int Client::gameExec()
break;
case SDL_KEYDOWN:
- if (inputManager.handleAssignKey(event, INPUT_KEYBOARD))
+ if (inputManager.handleAssignKey(
+ event, INPUT_KEYBOARD))
+ {
continue;
+ }
inputManager.updateConditionMask();
break;
case SDL_KEYUP:
- if (inputManager.handleAssignKey(event, INPUT_KEYBOARD))
+ if (inputManager.handleAssignKey(
+ event, INPUT_KEYBOARD))
+ {
continue;
+ }
inputManager.updateConditionMask();
break;
diff --git a/src/gui/widgets/dropdown.cpp b/src/gui/widgets/dropdown.cpp
index 5ecfba84d..0fc3675a2 100644
--- a/src/gui/widgets/dropdown.cpp
+++ b/src/gui/widgets/dropdown.cpp
@@ -237,7 +237,7 @@ void DropDown::keyPressed(gcn::KeyEvent& keyEvent)
int actionId = static_cast<KeyEvent*>(&keyEvent)->getActionId();
- switch(actionId)
+ switch (actionId)
{
case Input::KEY_GUI_SELECT:
case Input::KEY_GUI_SELECT2:
diff --git a/src/inputmanager.cpp b/src/inputmanager.cpp
index 4617bed19..60e4a7bca 100644
--- a/src/inputmanager.cpp
+++ b/src/inputmanager.cpp
@@ -156,7 +156,7 @@ void InputManager::store()
if (key.type != INPUT_UNKNOWN)
{
std::string tmp = "k";
- switch(key.type)
+ switch (key.type)
{
case INPUT_MOUSE:
tmp = "m";