From 62ffd2023d9073e452fe2e2f50cf6b2f11224d6f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 21 Aug 2012 22:44:44 +0300 Subject: next code style changes. --- src/gui/setup_input.h | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'src/gui/setup_input.h') diff --git a/src/gui/setup_input.h b/src/gui/setup_input.h index 89b102881..bed487b68 100644 --- a/src/gui/setup_input.h +++ b/src/gui/setup_input.h @@ -24,6 +24,8 @@ #ifndef GUI_SETUP_INPUT_H #define GUI_SETUP_INPUT_H +#include "keydata.h" + #include "gui/widgets/setuptab.h" #include @@ -58,12 +60,12 @@ class Setup_Input : public SetupTab /** * Get an update on the assigned key. */ - void refreshAssignedKey(int index); + void refreshAssignedKey(const int index); /** * The callback function when a new key has been pressed. */ - void newKeyCallback(int index); + void newKeyCallback(const int index); /** * Shorthand method to update all the keys. @@ -75,15 +77,16 @@ class Setup_Input : public SetupTab */ void keyUnresolved(); - int keyToSetupData(int index); + int keyToSetupData(const int index) const; - std::string keyToString(int index); + std::string keyToString(const int index) const; private: void fixTranslations(); - void fixTranslation(SetupActionData *actionDatas, int actionStart, - int actionEnd, std::string text); + void fixTranslation(SetupActionData *const actionDatas, + const int actionStart, const int actionEnd, + const std::string &text) const; class KeyListModel *mKeyListModel; gcn::ListBox *mKeyList; -- cgit v1.2.3-60-g2f50