summaryrefslogtreecommitdiff
path: root/src/gui/shortcut/itemshortcut.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-12-29 17:14:25 +0300
committerAndrei Karas <akaras@inbox.ru>2016-12-29 17:14:25 +0300
commit1dda8c604a46e39bf726dd88a7482988038f8b93 (patch)
treed6614eb62a351a3eb6c834f3c95a856f8f46bf5c /src/gui/shortcut/itemshortcut.h
parent007f7538ffa3b4854e06a7d799855093593eddd1 (diff)
downloadplus-1dda8c604a46e39bf726dd88a7482988038f8b93.tar.gz
plus-1dda8c604a46e39bf726dd88a7482988038f8b93.tar.bz2
plus-1dda8c604a46e39bf726dd88a7482988038f8b93.tar.xz
plus-1dda8c604a46e39bf726dd88a7482988038f8b93.zip
Add constexpr into itemshortcut.
Diffstat (limited to 'src/gui/shortcut/itemshortcut.h')
-rw-r--r--src/gui/shortcut/itemshortcut.h2
1 files changed, 1 insertions, 1 deletions
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; }
/**