summaryrefslogtreecommitdiff
path: root/svx/source/dialog
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-01-28 09:52:17 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-01-29 14:07:09 +0100
commit0e0175629fd0c6a99bb286f155e7a4855b8473d6 (patch)
tree44f3afb2e49a31d0c87339fe459b4318a9b90e86 /svx/source/dialog
parent1be7f03c8f6b945a0fc6514e1f5c1e228ea03547 (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/dialog')
-rw-r--r--svx/source/dialog/optgrid.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/svx/source/dialog/optgrid.cxx b/svx/source/dialog/optgrid.cxx
index 3262e7819abf..b836a042c03d 100644
--- a/svx/source/dialog/optgrid.cxx
+++ b/svx/source/dialog/optgrid.cxx
@@ -159,8 +159,7 @@ bool SvxGridTabPage::FillItemSet( SfxItemSet* rCoreSet )
aGridItem.bSynchronize = m_xCbxSynchronize->get_active();
aGridItem.bGridVisible = m_xCbxGridVisible->get_active();
- MapUnit eUnit =
- rCoreSet->GetPool()->GetMetric( GetWhich( SID_ATTR_GRID_OPTIONS ) );
+ MapUnit eUnit = rCoreSet->GetPool()->GetMetric( SID_ATTR_GRID_OPTIONS );
tools::Long nX = GetCoreValue( *m_xMtrFldDrawX, eUnit );
tools::Long nY = GetCoreValue( *m_xMtrFldDrawY, eUnit );
@@ -186,8 +185,7 @@ void SvxGridTabPage::Reset( const SfxItemSet* rSet )
m_xCbxSynchronize->set_active(pGridAttr->bSynchronize);
m_xCbxGridVisible->set_active(pGridAttr->bGridVisible);
- MapUnit eUnit =
- rSet->GetPool()->GetMetric( GetWhich( SID_ATTR_GRID_OPTIONS ) );
+ MapUnit eUnit = rSet->GetPool()->GetMetric( SID_ATTR_GRID_OPTIONS );
SetMetricValue( *m_xMtrFldDrawX , pGridAttr->nFldDrawX, eUnit );
SetMetricValue( *m_xMtrFldDrawY , pGridAttr->nFldDrawY, eUnit );