diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-03-08 21:37:43 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-03-11 14:10:30 +0100 |
commit | 1692998399eecb79e7b59456cff805bcb77aece4 (patch) | |
tree | 8cc22c633e88f19c39f5736e87a0934f041729de /include/svx/colorwindow.hxx | |
parent | rename RID_SVXSTR_GRAFIKLINK to RID_SVXSTR_GRAPHICLINK (diff) | |
download | core-1692998399eecb79e7b59456cff805bcb77aece4.tar.gz core-1692998399eecb79e7b59456cff805bcb77aece4.zip |
use strong_int for item ids in vcl::ToolBox
(*) fix bug in SfxToolBoxControl::StateChanged where it was using the slot id
instead of the toolbox item id
(*) I left the logic in SbaTableQueryBrowser alone, but it looks suspicious,
casting slot ids to toolbox ids
Change-Id: Ied229164c27fb4456b0515c6fdcbd1682766a1a9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112186
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svx/colorwindow.hxx')
-rw-r--r-- | include/svx/colorwindow.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/svx/colorwindow.hxx b/include/svx/colorwindow.hxx index 784f273e87a7..95f7c5c13d86 100644 --- a/include/svx/colorwindow.hxx +++ b/include/svx/colorwindow.hxx @@ -61,11 +61,11 @@ private: // or SvxColorToolBoxControl* m_pControl; VclPtr<ToolBox> m_xToolBox; - sal_uInt16 m_nId; + ToolBoxItemId m_nId; public: MenuOrToolMenuButton(weld::MenuButton* pMenuButton); MenuOrToolMenuButton(weld::Toolbar* pToolbar, const OString& rIdent); - MenuOrToolMenuButton(SvxColorToolBoxControl* pControl, ToolBox* pToolbar, sal_uInt16 nId); + MenuOrToolMenuButton(SvxColorToolBoxControl* pControl, ToolBox* pToolbar, ToolBoxItemId nId); ~MenuOrToolMenuButton(); MenuOrToolMenuButton(MenuOrToolMenuButton const &) = default; |