diff options
author | Armin Le Grand (allotropia) <armin.le.grand.extern@allotropia.de> | 2024-02-18 19:17:48 +0100 |
---|---|---|
committer | Armin Le Grand <Armin.Le.Grand@me.com> | 2024-02-18 21:37:52 +0100 |
commit | cebbd5795d6256fb346ac8d70c15daceca48c554 (patch) | |
tree | 40e5c20c2728c67a64f1156b1ca6099e4d16a081 /svx/source/tbxctrls | |
parent | d367142731f09c7be03ce1707e3aeab3c55b4f21 (diff) |
ITEM: Rename for more control over SlotID usages
Change-Id: I51585f1c15984a066262023184f668662853d20f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163556
Tested-by: Jenkins
Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
Diffstat (limited to 'svx/source/tbxctrls')
-rw-r--r-- | svx/source/tbxctrls/linewidthctrl.cxx | 2 | ||||
-rw-r--r-- | svx/source/tbxctrls/tbcontrl.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/tbxctrls/linewidthctrl.cxx b/svx/source/tbxctrls/linewidthctrl.cxx index 166f4bb451c9..a28c11cbd1c8 100644 --- a/svx/source/tbxctrls/linewidthctrl.cxx +++ b/svx/source/tbxctrls/linewidthctrl.cxx @@ -86,7 +86,7 @@ MapUnit SvxLineWidthToolBoxControl::GetCoreMetric() { SfxObjectShell* pSh = SfxObjectShell::Current(); SfxItemPool& rPool = pSh ? pSh->GetPool() : SfxGetpApp()->GetPool(); - sal_uInt16 nWhich = rPool.GetWhich(SID_ATTR_LINE_WIDTH); + sal_uInt16 nWhich = rPool.GetWhichIDFromSlotID(SID_ATTR_LINE_WIDTH); return rPool.GetMetric(nWhich); } diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx index d3f89aad706c..a07a1b752d5d 100644 --- a/svx/source/tbxctrls/tbcontrl.cxx +++ b/svx/source/tbxctrls/tbcontrl.cxx @@ -1300,7 +1300,7 @@ void SvxStyleBox_Base::UserDrawEntry(vcl::RenderContext& rRenderContext, const t static bool GetWhich(const SfxItemSet& rSet, sal_uInt16 nSlot, sal_uInt16& rWhich) { - rWhich = rSet.GetPool()->GetWhich(nSlot); + rWhich = rSet.GetPool()->GetWhichIDFromSlotID(nSlot); return rSet.GetItemState(rWhich) >= SfxItemState::DEFAULT; } |