From bf9fc1de4c53a88a28be48dbf7cf4795199442d4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 30 Sep 2019 03:27:33 +0300 Subject: Add missing static keywords --- src/input/inputmanager.cpp | 2 -- src/input/inputmanager.h | 5 ++--- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'src/input') diff --git a/src/input/inputmanager.cpp b/src/input/inputmanager.cpp index 1cb5281a9..b470b66ac 100644 --- a/src/input/inputmanager.cpp +++ b/src/input/inputmanager.cpp @@ -1061,7 +1061,6 @@ InputActionT InputManager::getActionByKey(const SDL_Event &restrict event) } InputActionT InputManager::getActionByConfigField(const std::string &field) - const restrict2 { for (int i = 0; i < CAST_S32(InputAction::TOTAL); i ++) { @@ -1073,7 +1072,6 @@ InputActionT InputManager::getActionByConfigField(const std::string &field) } void InputManager::addChatCommands(std::list &restrict arr) - restrict { const int sz = CAST_S32(InputAction::TOTAL); for (int i = 0; i < sz; i++) diff --git a/src/input/inputmanager.h b/src/input/inputmanager.h index dfbe8639a..f1eda8aae 100644 --- a/src/input/inputmanager.h +++ b/src/input/inputmanager.h @@ -143,8 +143,7 @@ class InputManager final InputActionT getActionByKey(const SDL_Event &restrict event) const restrict2 A_WARN_UNUSED; - InputActionT getActionByConfigField(const std::string &field) - const restrict2 A_WARN_UNUSED; + static InputActionT getActionByConfigField(const std::string &field); void executeAction(const InputActionT keyNum) restrict2; @@ -160,7 +159,7 @@ class InputManager final const std::string &restrict args, ChatTab *restrict const tab) restrict2; - void addChatCommands(std::list &restrict arr) restrict; + static void addChatCommands(std::list &restrict arr); protected: void resetKey(const InputActionT i) restrict2; -- cgit v1.2.3-70-g09d2