diff options
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/drawfunc/drawsh5.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/optdlg/tpview.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/view/formatsh.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/view/prevwsh.cxx | 8 | ||||
-rw-r--r-- | sc/source/ui/view/tabvwsh3.cxx | 8 | ||||
-rw-r--r-- | sc/source/ui/view/tabvwshb.cxx | 3 |
6 files changed, 10 insertions, 15 deletions
diff --git a/sc/source/ui/drawfunc/drawsh5.cxx b/sc/source/ui/drawfunc/drawsh5.cxx index c426ef2c43dd..52fd6c6b37ab 100644 --- a/sc/source/ui/drawfunc/drawsh5.cxx +++ b/sc/source/ui/drawfunc/drawsh5.cxx @@ -667,7 +667,7 @@ void ScDrawShell::ExecFormatPaintbrush( const SfxRequest& rReq ) bool bLock = false; const SfxItemSet *pArgs = rReq.GetArgs(); if( pArgs && pArgs->Count() >= 1 ) - bLock = static_cast<const SfxBoolItem&>(pArgs->Get(SID_FORMATPAINTBRUSH)).GetValue(); + bLock = pArgs->Get(SID_FORMATPAINTBRUSH).GetValue(); ScDrawView* pDrawView = pViewData->GetScDrawView(); if ( pDrawView && pDrawView->AreObjectsMarked() ) diff --git a/sc/source/ui/optdlg/tpview.cxx b/sc/source/ui/optdlg/tpview.cxx index 39d420f7f827..a7151bded5e7 100644 --- a/sc/source/ui/optdlg/tpview.cxx +++ b/sc/source/ui/optdlg/tpview.cxx @@ -527,7 +527,7 @@ void ScTpLayoutOptions::Reset( const SfxItemSet* rCoreSet ) m_pUnitLB->SetNoSelection(); if ( rCoreSet->GetItemState( SID_ATTR_METRIC ) >= SfxItemState::DEFAULT ) { - const SfxUInt16Item& rItem = static_cast<const SfxUInt16Item&>(rCoreSet->Get( SID_ATTR_METRIC )); + const SfxUInt16Item& rItem = rCoreSet->Get( SID_ATTR_METRIC ); FieldUnit eFieldUnit = static_cast<FieldUnit>(rItem.GetValue()); for ( sal_Int32 i = 0; i < m_pUnitLB->GetEntryCount(); ++i ) diff --git a/sc/source/ui/view/formatsh.cxx b/sc/source/ui/view/formatsh.cxx index 0e10b9646efe..ce6114d78766 100644 --- a/sc/source/ui/view/formatsh.cxx +++ b/sc/source/ui/view/formatsh.cxx @@ -2798,7 +2798,7 @@ void ScFormatShell::ExecFormatPaintbrush( const SfxRequest& rReq ) bool bLock = false; const SfxItemSet *pArgs = rReq.GetArgs(); if( pArgs && pArgs->Count() >= 1 ) - bLock = static_cast<const SfxBoolItem&>(pArgs->Get(SID_FORMATPAINTBRUSH)).GetValue(); + bLock = pArgs->Get(SID_FORMATPAINTBRUSH).GetValue(); // in case of multi selection, deselect all and use the cursor position ScRange aDummy; diff --git a/sc/source/ui/view/prevwsh.cxx b/sc/source/ui/view/prevwsh.cxx index 4acbaf1d8796..2067dd94687d 100644 --- a/sc/source/ui/view/prevwsh.cxx +++ b/sc/source/ui/view/prevwsh.cxx @@ -610,8 +610,7 @@ void ScPreviewShell::Execute( SfxRequest& rReq ) if ( pReqArgs ) { - const SvxZoomItem& rZoomItem = static_cast<const SvxZoomItem&>( - pReqArgs->Get(SID_ATTR_ZOOM)); + const SvxZoomItem& rZoomItem = pReqArgs->Get(SID_ATTR_ZOOM); eZoom = rZoomItem.GetType(); nZoom = rZoomItem.GetValue(); @@ -633,9 +632,8 @@ void ScPreviewShell::Execute( SfxRequest& rReq ) if ( !bCancel ) { - const SvxZoomItem& rZoomItem = static_cast<const SvxZoomItem&>( - pDlg->GetOutputItemSet()-> - Get( SID_ATTR_ZOOM )); + const SvxZoomItem& rZoomItem = pDlg->GetOutputItemSet()-> + Get( SID_ATTR_ZOOM ); eZoom = rZoomItem.GetType(); nZoom = rZoomItem.GetValue(); diff --git a/sc/source/ui/view/tabvwsh3.cxx b/sc/source/ui/view/tabvwsh3.cxx index 4c9fae9e1a11..1248d4e5576c 100644 --- a/sc/source/ui/view/tabvwsh3.cxx +++ b/sc/source/ui/view/tabvwsh3.cxx @@ -698,8 +698,7 @@ void ScTabViewShell::Execute( SfxRequest& rReq ) if ( pReqArgs ) { - const SvxZoomItem& rZoomItem = static_cast<const SvxZoomItem&>( - pReqArgs->Get(SID_ATTR_ZOOM)); + const SvxZoomItem& rZoomItem = pReqArgs->Get(SID_ATTR_ZOOM); eNewZoomType = rZoomItem.GetType(); nZoom = rZoomItem.GetValue(); @@ -739,9 +738,8 @@ void ScTabViewShell::Execute( SfxRequest& rReq ) // so no need to check again pDlg if ( !bCancel ) { - const SvxZoomItem& rZoomItem = static_cast<const SvxZoomItem&>( - pDlg->GetOutputItemSet()-> - Get( SID_ATTR_ZOOM )); + const SvxZoomItem& rZoomItem = pDlg->GetOutputItemSet()-> + Get( SID_ATTR_ZOOM ); eNewZoomType = rZoomItem.GetType(); nZoom = rZoomItem.GetValue(); diff --git a/sc/source/ui/view/tabvwshb.cxx b/sc/source/ui/view/tabvwshb.cxx index 034fa38d2296..062a02f82247 100644 --- a/sc/source/ui/view/tabvwshb.cxx +++ b/sc/source/ui/view/tabvwshb.cxx @@ -372,8 +372,7 @@ void ScTabViewShell::ExecDrawIns(SfxRequest& rReq) if ( pClient && pClient->IsObjectInPlaceActive() ) { - const SfxRectangleItem& rRect = - static_cast<const SfxRectangleItem&>(rReq.GetArgs()->Get(SID_OBJECTRESIZE)); + const SfxRectangleItem& rRect = rReq.GetArgs()->Get(SID_OBJECTRESIZE); tools::Rectangle aRect( pWin->PixelToLogic( rRect.GetValue() ) ); if ( pView->AreObjectsMarked() ) |