summaryrefslogtreecommitdiff
path: root/sc/source/ui
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 /sc/source/ui
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 'sc/source/ui')
-rw-r--r--sc/source/ui/drawfunc/drtxtob.cxx2
-rw-r--r--sc/source/ui/view/cellsh1.cxx2
-rw-r--r--sc/source/ui/view/editsh.cxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/drawfunc/drtxtob.cxx b/sc/source/ui/drawfunc/drtxtob.cxx
index f2af9e93be22..e3ec1fabd97b 100644
--- a/sc/source/ui/drawfunc/drtxtob.cxx
+++ b/sc/source/ui/drawfunc/drtxtob.cxx
@@ -219,7 +219,7 @@ void ScDrawTextObjectBar::Execute( SfxRequest &rReq )
{
aString = static_cast<const SfxStringItem*>(pItem)->GetValue();
const SfxPoolItem* pFtItem = nullptr;
- pArgs->GetItemState( GetPool().GetWhich(SID_ATTR_SPECIALCHAR), false, &pFtItem);
+ pArgs->GetItemState( SID_ATTR_SPECIALCHAR, false, &pFtItem);
const SfxStringItem* pFontItem = dynamic_cast<const SfxStringItem*>( pFtItem );
if ( pFontItem )
{
diff --git a/sc/source/ui/view/cellsh1.cxx b/sc/source/ui/view/cellsh1.cxx
index 8d342d0d2c4e..254eccac5769 100644
--- a/sc/source/ui/view/cellsh1.cxx
+++ b/sc/source/ui/view/cellsh1.cxx
@@ -2541,7 +2541,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
if ( pStringItem )
aChars = pStringItem->GetValue();
const SfxPoolItem* pFtItem = nullptr;
- pArgs->GetItemState( GetPool().GetWhich(SID_ATTR_SPECIALCHAR), false, &pFtItem);
+ pArgs->GetItemState( SID_ATTR_SPECIALCHAR, false, &pFtItem);
const SfxStringItem* pFontItem = dynamic_cast<const SfxStringItem*>( pFtItem );
if ( pFontItem )
aFontName = pFontItem->GetValue();
diff --git a/sc/source/ui/view/editsh.cxx b/sc/source/ui/view/editsh.cxx
index 559f4a539a83..30df7ebea5c0 100644
--- a/sc/source/ui/view/editsh.cxx
+++ b/sc/source/ui/view/editsh.cxx
@@ -398,7 +398,7 @@ void ScEditShell::Execute( SfxRequest& rReq )
{
aString = static_cast<const SfxStringItem*>(pItem)->GetValue();
const SfxPoolItem* pFtItem = nullptr;
- pArgs->GetItemState( GetPool().GetWhich(SID_ATTR_SPECIALCHAR), false, &pFtItem);
+ pArgs->GetItemState( SID_ATTR_SPECIALCHAR, false, &pFtItem);
const SfxStringItem* pFontItem = dynamic_cast<const SfxStringItem*>( pFtItem );
if ( pFontItem )
{