From 1dda8c604a46e39bf726dd88a7482988038f8b93 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 29 Dec 2016 17:14:25 +0300 Subject: Add constexpr into itemshortcut. --- src/gui/shortcut/itemshortcut.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui') diff --git a/src/gui/shortcut/itemshortcut.h b/src/gui/shortcut/itemshortcut.h index 1dd4640b2..8bd452c35 100644 --- a/src/gui/shortcut/itemshortcut.h +++ b/src/gui/shortcut/itemshortcut.h @@ -83,7 +83,7 @@ class ItemShortcut final /** * Returns the amount of shortcut items. */ - static int getItemCount() A_WARN_UNUSED + constexpr static int getItemCount() A_WARN_UNUSED { return SHORTCUT_ITEMS; } /** -- cgit v1.2.3-70-g09d2