From bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 12 Dec 2016 20:26:59 +0300 Subject: Add noexcept in some files. --- src/gui/shortcut/itemshortcut.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui/shortcut/itemshortcut.h') diff --git a/src/gui/shortcut/itemshortcut.h b/src/gui/shortcut/itemshortcut.h index 4d7933b9f..1dd4640b2 100644 --- a/src/gui/shortcut/itemshortcut.h +++ b/src/gui/shortcut/itemshortcut.h @@ -89,7 +89,7 @@ class ItemShortcut final /** * Returns the item ID that is currently selected. */ - int getItemSelected() const A_WARN_UNUSED + int getItemSelected() const noexcept2 A_WARN_UNUSED { return mItemSelected; } /** @@ -127,13 +127,13 @@ class ItemShortcut final /** * Returns selected shortcut item ID. */ - int getSelectedItem() const A_WARN_UNUSED + int getSelectedItem() const noexcept2 A_WARN_UNUSED { return mItemSelected; } /** * 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; } /** -- cgit v1.2.3-60-g2f50