summaryrefslogtreecommitdiff
path: root/sd
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 /sd
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 'sd')
-rw-r--r--sd/source/ui/func/fubullet.cxx2
-rw-r--r--sd/source/ui/view/drviews3.cxx3
2 files changed, 2 insertions, 3 deletions
diff --git a/sd/source/ui/func/fubullet.cxx b/sd/source/ui/func/fubullet.cxx
index da770da9f89c..2d83a0763993 100644
--- a/sd/source/ui/func/fubullet.cxx
+++ b/sd/source/ui/func/fubullet.cxx
@@ -154,7 +154,7 @@ void FuBullet::InsertSpecialCharacter( SfxRequest const & rReq )
const SfxItemSet *pArgs = rReq.GetArgs();
const SfxPoolItem* pItem = nullptr;
if( pArgs )
- pArgs->GetItemState(mpDoc->GetPool().GetWhich(SID_CHARMAP), false, &pItem);
+ pArgs->GetItemState(SID_CHARMAP, false, &pItem);
OUString aChars;
vcl::Font aFont;
diff --git a/sd/source/ui/view/drviews3.cxx b/sd/source/ui/view/drviews3.cxx
index bf0641a47aeb..54ec1575255b 100644
--- a/sd/source/ui/view/drviews3.cxx
+++ b/sd/source/ui/view/drviews3.cxx
@@ -687,8 +687,7 @@ void DrawViewShell::ExecRuler(SfxRequest& rReq)
::tools::Rectangle aRect = maMarkRect;
aRect.SetPos(aRect.TopLeft() + aPagePos);
- const SvxObjectItem& rOI = static_cast<const SvxObjectItem&>(
- pArgs->Get(GetPool().GetWhich(SID_RULER_OBJECT)));
+ const SvxObjectItem& rOI = pArgs->Get(SID_RULER_OBJECT);
if ( rOI.GetStartX() != rOI.GetEndX() )
{