diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-21 23:28:16 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-08-21 23:28:16 +0300 |
commit | cb84f051aae518fd70a84333c0d8b53bd01ccc19 (patch) | |
tree | a59a835fb00b2cd158a0ec92065d1513d39133c0 | |
parent | cf772fbdba567b293da80f285e67225631e18cd7 (diff) | |
download | ManaVerse-cb84f051aae518fd70a84333c0d8b53bd01ccc19.tar.gz ManaVerse-cb84f051aae518fd70a84333c0d8b53bd01ccc19.tar.bz2 ManaVerse-cb84f051aae518fd70a84333c0d8b53bd01ccc19.tar.xz ManaVerse-cb84f051aae518fd70a84333c0d8b53bd01ccc19.zip |
Remove const from action functions definition.
-rw-r--r-- | src/actions/actiondef.h | 5 | ||||
-rw-r--r-- | src/actions/actions.h | 2 | ||||
-rw-r--r-- | src/actions/chat.h | 2 | ||||
-rw-r--r-- | src/actions/move.h | 2 | ||||
-rw-r--r-- | src/actions/statusbar.h | 2 | ||||
-rw-r--r-- | src/actions/tabs.h | 2 | ||||
-rw-r--r-- | src/actions/target.h | 2 | ||||
-rw-r--r-- | src/actions/windows.h | 2 | ||||
-rw-r--r-- | src/input/inputactiondata.h | 2 |
9 files changed, 10 insertions, 11 deletions
diff --git a/src/actions/actiondef.h b/src/actions/actiondef.h index 70e44f794..a192fc4c1 100644 --- a/src/actions/actiondef.h +++ b/src/actions/actiondef.h @@ -26,9 +26,8 @@ #include "input/inputmanager.h" -#define decHandler(name) bool name(const InputEvent &event) -#define impHandler(name) bool name(const InputEvent &event) -#define impHandler0(name) bool name(const InputEvent &event A_UNUSED) +#define impHandler(name) bool name(InputEvent &event) +#define impHandler0(name) bool name(InputEvent &event A_UNUSED) #define callYellowBar(name) \ GameModifiers::name(!inputManager.isActionActive( \ diff --git a/src/actions/actions.h b/src/actions/actions.h index b88fefc7d..6fb4fa01c 100644 --- a/src/actions/actions.h +++ b/src/actions/actions.h @@ -21,7 +21,7 @@ #ifndef ACTIONS_ACTIONS_H #define ACTIONS_ACTIONS_H -#define decHandler(name) bool name(const InputEvent &event) +#define decHandler(name) bool name(InputEvent &event) struct InputEvent; diff --git a/src/actions/chat.h b/src/actions/chat.h index f57362b0e..ed7ef97ed 100644 --- a/src/actions/chat.h +++ b/src/actions/chat.h @@ -21,7 +21,7 @@ #ifndef ACTIONS_CHAT_H #define ACTIONS_CHAT_H -#define decHandler(name) bool name(const InputEvent &event) +#define decHandler(name) bool name(InputEvent &event) struct InputEvent; diff --git a/src/actions/move.h b/src/actions/move.h index 4ca760400..3e126baea 100644 --- a/src/actions/move.h +++ b/src/actions/move.h @@ -21,7 +21,7 @@ #ifndef ACTIONS_MOVE_H #define ACTIONS_MOVE_H -#define decHandler(name) bool name(const InputEvent &event) +#define decHandler(name) bool name(InputEvent &event) struct InputEvent; diff --git a/src/actions/statusbar.h b/src/actions/statusbar.h index 68e1d6217..e532e4d6f 100644 --- a/src/actions/statusbar.h +++ b/src/actions/statusbar.h @@ -21,7 +21,7 @@ #ifndef ACTIONS_STATUSBAR_H #define ACTIONS_STATUSBAR_H -#define decHandler(name) bool name(const InputEvent &event) +#define decHandler(name) bool name(InputEvent &event) struct InputEvent; diff --git a/src/actions/tabs.h b/src/actions/tabs.h index c0bb49c86..89468d67f 100644 --- a/src/actions/tabs.h +++ b/src/actions/tabs.h @@ -21,7 +21,7 @@ #ifndef ACTIONS_TABS_H #define ACTIONS_TABS_H -#define decHandler(name) bool name(const InputEvent &event) +#define decHandler(name) bool name(InputEvent &event) struct InputEvent; diff --git a/src/actions/target.h b/src/actions/target.h index 0b4bea943..529f339ce 100644 --- a/src/actions/target.h +++ b/src/actions/target.h @@ -21,7 +21,7 @@ #ifndef ACTIONS_TARGET_H #define ACTIONS_TARGET_H -#define decHandler(name) bool name(const InputEvent &event) +#define decHandler(name) bool name(InputEvent &event) struct InputEvent; diff --git a/src/actions/windows.h b/src/actions/windows.h index 97f1b85e7..9b0184feb 100644 --- a/src/actions/windows.h +++ b/src/actions/windows.h @@ -21,7 +21,7 @@ #ifndef ACTIONS_WINDOWS_H #define ACTIONS_WINDOWS_H -#define decHandler(name) bool name(const InputEvent &event) +#define decHandler(name) bool name(InputEvent &event) struct InputEvent; diff --git a/src/input/inputactiondata.h b/src/input/inputactiondata.h index 403f5050e..aefa6fc86 100644 --- a/src/input/inputactiondata.h +++ b/src/input/inputactiondata.h @@ -27,7 +27,7 @@ #include <string> -typedef bool (*ActionFuncPtr) (const InputEvent &event); +typedef bool (*ActionFuncPtr) (InputEvent &event); struct InputActionData final { |