diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-26 21:29:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-26 21:29:59 +0300 |
commit | a33a8dc48761d7cb2b4c1c468e1e3b188bcbf709 (patch) | |
tree | 1b1e98a615e2c03641c99b66cb4667b56f7087c3 /src/gui/charselectdialog.h | |
parent | 012a10fd8153f3ddb775dde1e4dba4456f2aa9de (diff) | |
download | manaplus-a33a8dc48761d7cb2b4c1c468e1e3b188bcbf709.tar.gz manaplus-a33a8dc48761d7cb2b4c1c468e1e3b188bcbf709.tar.bz2 manaplus-a33a8dc48761d7cb2b4c1c468e1e3b188bcbf709.tar.xz manaplus-a33a8dc48761d7cb2b4c1c468e1e3b188bcbf709.zip |
Add const to some classes.
Diffstat (limited to 'src/gui/charselectdialog.h')
-rw-r--r-- | src/gui/charselectdialog.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/gui/charselectdialog.h b/src/gui/charselectdialog.h index fb71b4bf4..0522566f1 100644 --- a/src/gui/charselectdialog.h +++ b/src/gui/charselectdialog.h @@ -66,7 +66,7 @@ class CharSelectDialog : public Window, /** * Constructor. */ - CharSelectDialog(LoginData *data); + CharSelectDialog(LoginData *const data); ~CharSelectDialog(); @@ -89,23 +89,24 @@ class CharSelectDialog : public Window, * character). */ bool selectByName(const std::string &name, - SelectAction action = Focus); + const SelectAction action = Focus); - void askPasswordForDeletion(int index); + void askPasswordForDeletion(const int index); private: - void attemptCharacterDelete(int index); - void attemptCharacterSelect(int index); + void attemptCharacterDelete(const int index); + + void attemptCharacterSelect(const int index); void setCharacters(const Net::Characters &characters); void lock(); void unlock(); - void setLocked(bool locked); + void setLocked(const bool locked); bool getFocusedContainer(int &container, int &idx); - void setFocusedContainer(int i, int button); + void setFocusedContainer(const int i, const int button); bool mLocked; |