summaryrefslogtreecommitdiff
path: root/sfx2/source/view
diff options
context:
space:
mode:
authorNoel <noel.grandin@collabora.co.uk>2021-03-08 21:37:43 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-03-11 14:10:30 +0100
commit1692998399eecb79e7b59456cff805bcb77aece4 (patch)
tree8cc22c633e88f19c39f5736e87a0934f041729de /sfx2/source/view
parent665a2b477dd4f412b42ffb58a183f7a702cd7645 (diff)
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 'sfx2/source/view')
-rw-r--r--sfx2/source/view/viewsh.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/view/viewsh.cxx b/sfx2/source/view/viewsh.cxx
index 4aa8f4d3d792..804a8da5da35 100644
--- a/sfx2/source/view/viewsh.cxx
+++ b/sfx2/source/view/viewsh.cxx
@@ -417,7 +417,7 @@ void SfxViewShell::ExecMisc_Impl( SfxRequest &rReq )
ToolBox::ImplToolItems::size_type nItemCount = pTextToolbox->GetItemCount();
for( ToolBox::ImplToolItems::size_type nItem = 0; nItem < nItemCount; ++nItem )
{
- sal_uInt16 nItemId = pTextToolbox->GetItemId( nItem );
+ ToolBoxItemId nItemId = pTextToolbox->GetItemId( nItem );
const OUString& rCommand = pTextToolbox->GetItemCommand( nItemId );
if (rCommand == ".uno:StyleApply")
{