diff options
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/drwlayer.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/docshell/docsh4.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/view/formatsh.cxx | 3 |
3 files changed, 3 insertions, 4 deletions
diff --git a/sc/source/core/data/drwlayer.cxx b/sc/source/core/data/drwlayer.cxx index 311109a77115..2a22505bbc99 100644 --- a/sc/source/core/data/drwlayer.cxx +++ b/sc/source/core/data/drwlayer.cxx @@ -255,7 +255,7 @@ ScDrawLayer::ScDrawLayer( ScDocument* pDocument, const OUString& rName ) : SetObjectShell( pObjSh ); // set color table - const SvxColorListItem* pColItem = static_cast<const SvxColorListItem*>( pObjSh->GetItem( SID_COLOR_TABLE ) ); + const SvxColorListItem* pColItem = pObjSh->GetItem( SID_COLOR_TABLE ); if ( pColItem ) pXCol = pColItem->GetColorList(); } diff --git a/sc/source/ui/docshell/docsh4.cxx b/sc/source/ui/docshell/docsh4.cxx index a847445f6051..bde0d7b6f4e9 100644 --- a/sc/source/ui/docshell/docsh4.cxx +++ b/sc/source/ui/docshell/docsh4.cxx @@ -587,7 +587,7 @@ void ScDocShell::Execute( SfxRequest& rReq ) case SID_GET_COLORLIST: { - const SvxColorListItem* pColItem = static_cast<const SvxColorListItem*>(GetItem(SID_COLOR_TABLE)); + const SvxColorListItem* pColItem = GetItem(SID_COLOR_TABLE); XColorListRef pList = pColItem->GetColorList(); rReq.SetReturnValue(OfaRefItem<XColorList>(SID_GET_COLORLIST, pList)); } diff --git a/sc/source/ui/view/formatsh.cxx b/sc/source/ui/view/formatsh.cxx index 94961fa1c4aa..f8f5cb10250d 100644 --- a/sc/source/ui/view/formatsh.cxx +++ b/sc/source/ui/view/formatsh.cxx @@ -923,8 +923,7 @@ void ScFormatShell::ExecuteStyle( SfxRequest& rReq ) if ( SfxStyleFamily::Para == eFam ) { ScTabViewShell::UpdateNumberFormatter( - static_cast<const SvxNumberInfoItem&>( - *(pDocSh->GetItem(SID_ATTR_NUMBERFORMAT_INFO)) )); + *( pDocSh->GetItem(SID_ATTR_NUMBERFORMAT_INFO) )); pTabViewShell->UpdateStyleSheetInUse( pStyleSheet ); pTabViewShell->InvalidateAttribs(); |