From 866a71ffd576fd10c4e309195016d86f0c8ed635 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 3 Sep 2012 21:58:08 +0300 Subject: Add const to more classes. --- src/spellshortcut.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/spellshortcut.h') 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: -- cgit v1.2.3-60-g2f50