summaryrefslogtreecommitdiff
path: root/sw/source/uibase/shells/drwtxtsh.cxx
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 /sw/source/uibase/shells/drwtxtsh.cxx
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 'sw/source/uibase/shells/drwtxtsh.cxx')
-rw-r--r--sw/source/uibase/shells/drwtxtsh.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/shells/drwtxtsh.cxx b/sw/source/uibase/shells/drwtxtsh.cxx
index 3996277fc855..d1f82bdfb572 100644
--- a/sw/source/uibase/shells/drwtxtsh.cxx
+++ b/sw/source/uibase/shells/drwtxtsh.cxx
@@ -677,7 +677,7 @@ void SwDrawTextShell::InsertSymbol(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);
OUString sSym;
OUString sFontName;
@@ -777,7 +777,7 @@ void SwDrawTextShell::InsertSymbol(SfxRequest& rReq)
pOutliner->SetUpdateLayout(true);
pOLV->ShowCursor();
- rReq.AppendItem( SfxStringItem( GetPool().GetWhich(SID_CHARMAP), sSym ) );
+ rReq.AppendItem( SfxStringItem( SID_CHARMAP, sSym ) );
if(!aFont.GetFamilyName().isEmpty())
rReq.AppendItem( SfxStringItem( SID_ATTR_SPECIALCHAR, aFont.GetFamilyName() ) );
rReq.Done();