summaryrefslogtreecommitdiff
path: root/src/spellshortcut.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-03 21:58:08 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-04 03:06:57 +0300
commit866a71ffd576fd10c4e309195016d86f0c8ed635 (patch)
tree21bbec175afc181cada529598267d62f12fcb671 /src/spellshortcut.h
parentebecb0cf42f2066943908fa158ac91527e0e6629 (diff)
downloadmanaplus-866a71ffd576fd10c4e309195016d86f0c8ed635.tar.gz
manaplus-866a71ffd576fd10c4e309195016d86f0c8ed635.tar.bz2
manaplus-866a71ffd576fd10c4e309195016d86f0c8ed635.tar.xz
manaplus-866a71ffd576fd10c4e309195016d86f0c8ed635.zip
Add const to more classes.
Diffstat (limited to 'src/spellshortcut.h')
-rw-r--r--src/spellshortcut.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/spellshortcut.h b/src/spellshortcut.h
index 7e17c9f57..b26211fc4 100644
--- a/src/spellshortcut.h
+++ b/src/spellshortcut.h
@@ -55,7 +55,7 @@ class SpellShortcut
*
* @param itemId The ID of the item that is to be assigned.
*/
- void setItemSelected(int itemId)
+ void setItemSelected(const int itemId)
{ mItemSelected = itemId; }
/**
@@ -75,7 +75,7 @@ class SpellShortcut
*
* @param index Index of the shortcut item.
*/
- int getItem(int index) const
+ int getItem(const int index) const
{ return mItems[index]; }
private: