summaryrefslogtreecommitdiff
path: root/src/spellshortcut.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-03-24 14:03:12 +0300
committerAndrei Karas <akaras@inbox.ru>2013-03-24 14:03:12 +0300
commit17f5fe7521ea045b3ce4bffda708b813359c5ee0 (patch)
tree74355a6f8c209a92eb950d6127987f42e990d725 /src/spellshortcut.h
parentf1f5595df167c69cc1c04157e477cd9dce290f66 (diff)
downloadplus-17f5fe7521ea045b3ce4bffda708b813359c5ee0.tar.gz
plus-17f5fe7521ea045b3ce4bffda708b813359c5ee0.tar.bz2
plus-17f5fe7521ea045b3ce4bffda708b813359c5ee0.tar.xz
plus-17f5fe7521ea045b3ce4bffda708b813359c5ee0.zip
improve spellshortcut class.
Diffstat (limited to 'src/spellshortcut.h')
-rw-r--r--src/spellshortcut.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/spellshortcut.h b/src/spellshortcut.h
index 7393503dc..d5ce35e6e 100644
--- a/src/spellshortcut.h
+++ b/src/spellshortcut.h
@@ -27,6 +27,8 @@
class TextCommand;
+const int SPELLS_SIZE = SPELL_SHORTCUT_ITEMS * SPELL_SHORTCUT_TABS;
+
/**
* The class which keeps track of the item shortcuts.
*/
@@ -81,7 +83,7 @@ class SpellShortcut final
{ return mItems[index]; }
private:
- int mItems[SPELL_SHORTCUT_ITEMS * SPELL_SHORTCUT_TABS];
+ int mItems[SPELLS_SIZE];
int mItemSelected; /**< The item held by cursor. */
};