diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-02-02 12:46:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-02-02 12:46:32 +0300 |
commit | 11caa7aeeb3a7b40823da8573576d2354b7504b5 (patch) | |
tree | fe34c20ea973e65104747b59675acf6363e7b5d2 /src/gui/widgets/tabs/setup_input.cpp | |
parent | 0c4ed5a9594b849b436fca13c6992dee923915ed (diff) | |
download | manaplus-11caa7aeeb3a7b40823da8573576d2354b7504b5.tar.gz manaplus-11caa7aeeb3a7b40823da8573576d2354b7504b5.tar.bz2 manaplus-11caa7aeeb3a7b40823da8573576d2354b7504b5.tar.xz manaplus-11caa7aeeb3a7b40823da8573576d2354b7504b5.zip |
Add missing const and static into gui classes.
Diffstat (limited to 'src/gui/widgets/tabs/setup_input.cpp')
-rw-r--r-- | src/gui/widgets/tabs/setup_input.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gui/widgets/tabs/setup_input.cpp b/src/gui/widgets/tabs/setup_input.cpp index 2ce99d971..9ce6fd616 100644 --- a/src/gui/widgets/tabs/setup_input.cpp +++ b/src/gui/widgets/tabs/setup_input.cpp @@ -270,7 +270,7 @@ void Setup_Input::action(const gcn::ActionEvent &event) else if (id == "resetkeys") { inputManager.resetKeys(); - inputManager.update(); + InputManager::update(); refreshKeys(); } else if (id == "default") @@ -378,8 +378,9 @@ void Setup_Input::keyUnresolved() } void Setup_Input::fixTranslation(SetupActionData *const actionDatas, - const int actionStart, const int actionEnd, - const std::string &text) const + const int actionStart, + const int actionEnd, + const std::string &text) { int k = 0; @@ -397,7 +398,7 @@ void Setup_Input::fixTranslation(SetupActionData *const actionDatas, } } -void Setup_Input::fixTranslations() const +void Setup_Input::fixTranslations() { fixTranslation(setupActionData1, static_cast<int>(Input::KEY_SHORTCUT_1), static_cast<int>(Input::KEY_SHORTCUT_20), "Item Shortcut %d"); |