summaryrefslogtreecommitdiff
path: root/src/gui/shortcut/itemshortcut.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-03 03:20:07 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-03 03:20:07 +0300
commit4546f29469d01fcbb5a030c4cf1746b786b495da (patch)
tree1c993be9c3c4cbde0c48fda8c2ee0d07a9863e3b /src/gui/shortcut/itemshortcut.h
parenta06b27bdd35ee48a1e26aa3be53af6d1063a5d4c (diff)
downloadplus-4546f29469d01fcbb5a030c4cf1746b786b495da.tar.gz
plus-4546f29469d01fcbb5a030c4cf1746b786b495da.tar.bz2
plus-4546f29469d01fcbb5a030c4cf1746b786b495da.tar.xz
plus-4546f29469d01fcbb5a030c4cf1746b786b495da.zip
Fix signed / unsigned comparision issue in old gcc.
Diffstat (limited to 'src/gui/shortcut/itemshortcut.h')
-rw-r--r--src/gui/shortcut/itemshortcut.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/shortcut/itemshortcut.h b/src/gui/shortcut/itemshortcut.h
index a2107207d..7f351cabc 100644
--- a/src/gui/shortcut/itemshortcut.h
+++ b/src/gui/shortcut/itemshortcut.h
@@ -31,7 +31,7 @@
const unsigned int SHORTCUT_ITEMS = 20;
const unsigned int SHORTCUT_TABS = 5;
-const unsigned int SHORTCUT_AUTO_TAB = 4;
+const size_t SHORTCUT_AUTO_TAB = 4;
class Item;
@@ -44,7 +44,7 @@ class ItemShortcut final
/**
* Constructor.
*/
- explicit ItemShortcut(const int number);
+ explicit ItemShortcut(const size_t number);
A_DELETE_COPY(ItemShortcut)
@@ -172,9 +172,9 @@ class ItemShortcut final
int mItems[SHORTCUT_ITEMS]; /**< The items. */
ItemColor mItemColors[SHORTCUT_ITEMS]; /**< The item colors. */
std::string mItemData[SHORTCUT_ITEMS];
+ size_t mNumber;
int mItemSelected;
ItemColor mItemColorSelected;
- int mNumber;
};
extern ItemShortcut *itemShortcut[SHORTCUT_TABS];