diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-01-28 09:52:17 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-01-29 14:07:09 +0100 |
commit | 0e0175629fd0c6a99bb286f155e7a4855b8473d6 (patch) | |
tree | 44f3afb2e49a31d0c87339fe459b4318a9b90e86 /svx/source/sidebar | |
parent | 1be7f03c8f6b945a0fc6514e1f5c1e228ea03547 (diff) |
no need to call GetWhich on these SID_ values
none of them are remapped (via the SfxItemfo stuff in the pool)
Change-Id: Iefd38f1aac55e6059e2c57d102efb508bd1572b0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129090
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/sidebar')
-rw-r--r-- | svx/source/sidebar/paragraph/ParaSpacingWindow.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/svx/source/sidebar/paragraph/ParaSpacingWindow.cxx b/svx/source/sidebar/paragraph/ParaSpacingWindow.cxx index fdfbf6fd0b1f..8c48de0e0761 100644 --- a/svx/source/sidebar/paragraph/ParaSpacingWindow.cxx +++ b/svx/source/sidebar/paragraph/ParaSpacingWindow.cxx @@ -74,8 +74,7 @@ void ParaULSpacingWindow::SetUnit(FieldUnit eUnit) m_xBelowSpacing->SetFieldUnit(eUnit); SfxItemPool &rPool = SfxGetpApp()->GetPool(); - sal_uInt16 nWhich = rPool.GetWhich(SID_ATTR_PARA_ULSPACE); - m_eUnit = rPool.GetMetric(nWhich); + m_eUnit = rPool.GetMetric(SID_ATTR_PARA_ULSPACE); m_xAboveSpacing->set_max(m_xAboveSpacing->normalize(MAX_DURCH), MapToFieldUnit(m_eUnit)); m_xBelowSpacing->set_max(m_xBelowSpacing->normalize(MAX_DURCH), MapToFieldUnit(m_eUnit)); @@ -277,8 +276,7 @@ void ParaLRSpacingWindow::SetUnit(FieldUnit eUnit) m_xFLSpacing->SetFieldUnit(eUnit); SfxItemPool &rPool = SfxGetpApp()->GetPool(); - sal_uInt16 nWhich = rPool.GetWhich(SID_ATTR_PARA_LRSPACE); - m_eUnit = rPool.GetMetric(nWhich); + m_eUnit = rPool.GetMetric(SID_ATTR_PARA_LRSPACE); } IMPL_LINK_NOARG(ParaLRSpacingWindow, ModifySpacingHdl, weld::MetricSpinButton&, void) |