summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-05-25 11:30:28 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-05-25 20:14:03 +0200
commitea63b3d25a7c83773721f8ba6bf6d00c059d44fe (patch)
tree5b6ba1cf938f436489c391dda6ae3308d47c5c1c /cui
parent3ec8822b62d647379999b4c09f3e72b9474b61a3 (diff)
use more TypedWhichId
Change-Id: I6c54c1276b36cbc71417486ffcee2ef9ef0cff7b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152270 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/tabpages/grfpage.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/cui/source/tabpages/grfpage.cxx b/cui/source/tabpages/grfpage.cxx
index 1bbc73c3add3..aa49c2a7267c 100644
--- a/cui/source/tabpages/grfpage.cxx
+++ b/cui/source/tabpages/grfpage.cxx
@@ -187,8 +187,7 @@ void SvxGrfCropPage::Reset( const SfxItemSet *rSet )
if( const SvxBrushItem* pGraphicItem = rSet->GetItemIfSet( SID_ATTR_GRAF_GRAPHIC, false ) )
{
OUString referer;
- SfxStringItem const * it = static_cast<SfxStringItem const *>(
- rSet->GetItem(SID_REFERER));
+ SfxStringItem const * it = rSet->GetItem(SID_REFERER);
if (it != nullptr) {
referer = it->GetValue();
}
@@ -322,8 +321,7 @@ void SvxGrfCropPage::ActivatePage(const SfxItemSet& rSet)
m_aGraphicName = pBrushItem->GetGraphicLink();
OUString referer;
- SfxStringItem const * it = static_cast<SfxStringItem const *>(
- rSet.GetItem(SID_REFERER));
+ SfxStringItem const * it = rSet.GetItem(SID_REFERER);
if (it != nullptr) {
referer = it->GetValue();
}