summaryrefslogtreecommitdiff
path: root/src/gui/shortcut/shortcutbase.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/shortcut/shortcutbase.h')
-rw-r--r--src/gui/shortcut/shortcutbase.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/shortcut/shortcutbase.h b/src/gui/shortcut/shortcutbase.h
index 8f68d5a69..995c29121 100644
--- a/src/gui/shortcut/shortcutbase.h
+++ b/src/gui/shortcut/shortcutbase.h
@@ -75,13 +75,13 @@ class ShortcutBase notfinal
/**
* Returns the amount of shortcut items.
*/
- int getItemCount() const A_WARN_UNUSED
+ int getItemCount() const noexcept2 A_WARN_UNUSED
{ return mMaxSize; }
/**
* Returns the item ID that is currently selected.
*/
- int getItemSelected() const A_WARN_UNUSED
+ int getItemSelected() const noexcept2 A_WARN_UNUSED
{ return mItemSelected; }
/**
@@ -115,7 +115,7 @@ class ShortcutBase notfinal
/**
* A flag to check if the item is selected.
*/
- bool isItemSelected() const A_WARN_UNUSED
+ bool isItemSelected() const noexcept2 A_WARN_UNUSED
{ return mItemSelected > -1; }
/**