summaryrefslogtreecommitdiff
path: root/src/itemshortcut.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-30 01:19:46 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-30 13:11:34 +0300
commit6b1684d33dec02eb6308bb3d8d3707f4d5252ba5 (patch)
tree4a0a5fd220828b92ef96446fe38dbe67ff446c6c /src/itemshortcut.h
parent2a70a50c785ce639b76141a3a6887836d22fe12c (diff)
downloadplus-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.gz
plus-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.bz2
plus-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.xz
plus-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.zip
Add unused warnings to some files.
Diffstat (limited to 'src/itemshortcut.h')
-rw-r--r--src/itemshortcut.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/itemshortcut.h b/src/itemshortcut.h
index 8b587cd59..bf24fa0d0 100644
--- a/src/itemshortcut.h
+++ b/src/itemshortcut.h
@@ -63,22 +63,22 @@ class ItemShortcut final
*
* @param index Index of the shortcut item.
*/
- int getItem(const int index) const
+ int getItem(const int index) const A_WARN_UNUSED
{ return mItems[index]; }
- unsigned char getItemColor(const int index) const
+ unsigned char getItemColor(const int index) const A_WARN_UNUSED
{ return mItemColors[index]; }
/**
* Returns the amount of shortcut items.
*/
- int getItemCount() const
+ int getItemCount() const A_WARN_UNUSED
{ return SHORTCUT_ITEMS; }
/**
* Returns the item ID that is currently selected.
*/
- int getItemSelected() const
+ int getItemSelected() const A_WARN_UNUSED
{ return mItemSelected; }
/**
@@ -111,13 +111,13 @@ class ItemShortcut final
/**
* Returns selected shortcut item ID.
*/
- int getSelectedItem() const
+ int getSelectedItem() const A_WARN_UNUSED
{ return mItemSelected; }
/**
* A flag to check if the item is selected.
*/
- bool isItemSelected() const
+ bool isItemSelected() const A_WARN_UNUSED
{ return mItemSelected > -1; }
/**