summaryrefslogtreecommitdiff
path: root/sc/source/ui/view
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-01-27 14:56:31 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-01-27 20:05:46 +0100
commit12be8dadfad2167ff4317935d30782626afa3eaf (patch)
treeeb04c03fa883c953e7464fa9f67577611d21ddef /sc/source/ui/view
parent0e570fafd319c6567d798ff9e5530099c53312ee (diff)
no need to call GetWhich on these SID_ values
none of them are remapped (via the SfxItemEntryInfo stuff in the pool) Change-Id: Ic7b5f2c3cc75a65bdf9c45f9522cc53954b4ba38 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129040 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/view')
-rw-r--r--sc/source/ui/view/cellsh1.cxx2
-rw-r--r--sc/source/ui/view/editsh.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/view/cellsh1.cxx b/sc/source/ui/view/cellsh1.cxx
index c1eb2ed66583..8d342d0d2c4e 100644
--- a/sc/source/ui/view/cellsh1.cxx
+++ b/sc/source/ui/view/cellsh1.cxx
@@ -2534,7 +2534,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
const SfxItemSet *pArgs = rReq.GetArgs();
const SfxPoolItem* pItem = nullptr;
if ( pArgs )
- pArgs->GetItemState(GetPool().GetWhich(SID_CHARMAP), false, &pItem);
+ pArgs->GetItemState(SID_CHARMAP, false, &pItem);
if ( pItem )
{
const SfxStringItem* pStringItem = dynamic_cast<const SfxStringItem*>( pItem );
diff --git a/sc/source/ui/view/editsh.cxx b/sc/source/ui/view/editsh.cxx
index 7f0a6d9ef080..559f4a539a83 100644
--- a/sc/source/ui/view/editsh.cxx
+++ b/sc/source/ui/view/editsh.cxx
@@ -392,7 +392,7 @@ void ScEditShell::Execute( SfxRequest& rReq )
const SfxItemSet *pArgs = rReq.GetArgs();
const SfxPoolItem* pItem = nullptr;
if( pArgs )
- pArgs->GetItemState(GetPool().GetWhich(SID_CHARMAP), false, &pItem);
+ pArgs->GetItemState(SID_CHARMAP, false, &pItem);
if ( pItem )
{