summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2017-06-30 13:43:33 +0300
committerTor Lillqvist <tml@collabora.com>2017-06-30 14:11:15 +0300
commitf9db57dd5bf322382110c8ae1901677c7d88b516 (patch)
tree4d0ad99faf5582fc17c03814693e17d1d24f46b1
parentf70665d6f2c6f95f3aa8901349cc6314e0801e36 (diff)
ScMenuFloatingWindow::MENU_NOT_SELECTED can be constexpr
Change-Id: Idd07133385d6986b3ba09dd58b2d3bba3a17f822
-rw-r--r--sc/source/ui/cctrl/checklistmenu.cxx2
-rw-r--r--sc/source/ui/inc/checklistmenu.hxx3
2 files changed, 2 insertions, 3 deletions
diff --git a/sc/source/ui/cctrl/checklistmenu.cxx b/sc/source/ui/cctrl/checklistmenu.cxx
index 0a42c36d2c45..42d56f2ad821 100644
--- a/sc/source/ui/cctrl/checklistmenu.cxx
+++ b/sc/source/ui/cctrl/checklistmenu.cxx
@@ -71,8 +71,6 @@ IMPL_LINK_NOARG(ScMenuFloatingWindow::SubMenuItemData, TimeoutHdl, Timer *, void
mpParent->handleMenuTimeout(this);
}
-size_t ScMenuFloatingWindow::MENU_NOT_SELECTED = 999;
-
ScMenuFloatingWindow::ScMenuFloatingWindow(vcl::Window* pParent, ScDocument* pDoc, sal_uInt16 nMenuStackLevel) :
PopupMenuFloatingWindow(pParent),
maOpenTimer(this),
diff --git a/sc/source/ui/inc/checklistmenu.hxx b/sc/source/ui/inc/checklistmenu.hxx
index 6ac7c4879fc2..9d433568ce26 100644
--- a/sc/source/ui/inc/checklistmenu.hxx
+++ b/sc/source/ui/inc/checklistmenu.hxx
@@ -37,7 +37,8 @@ class ScAccessibleFilterMenu;
class ScMenuFloatingWindow : public PopupMenuFloatingWindow
{
public:
- static size_t MENU_NOT_SELECTED;
+ static constexpr size_t MENU_NOT_SELECTED = 999;
+
/**
* Action to perform when an event takes place. Create a sub-class of
* this to implement the desired action.