diff options
author | Noel Grandin <noel@peralex.com> | 2014-10-27 14:18:59 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-10-28 08:11:26 +0200 |
commit | 282e954477f904524ca192256c4e33ab0585e2f6 (patch) | |
tree | e0971d31fda3c2e8b1e4b806831534547e18cab1 /sc/source/ui/view/tabvwshe.cxx | |
parent | 223a5b75457e38d70db63f3992ff601c3e381639 (diff) |
loplugin: cstylecast
Change-Id: I42cd0be78478536322357ca7a03cf30e624b1afc
Diffstat (limited to 'sc/source/ui/view/tabvwshe.cxx')
-rw-r--r-- | sc/source/ui/view/tabvwshe.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sc/source/ui/view/tabvwshe.cxx b/sc/source/ui/view/tabvwshe.cxx index 9e27f03fd1f9..464f8011e04b 100644 --- a/sc/source/ui/view/tabvwshe.cxx +++ b/sc/source/ui/view/tabvwshe.cxx @@ -228,7 +228,7 @@ void ScTabViewShell::ExecSearch( SfxRequest& rReq ) SfxItemState::SET == pReqArgs->GetItemState(SID_SEARCH_ITEM, false, &pItem) ) { OSL_ENSURE( pItem->ISA(SvxSearchItem), "falsches Item" ); - const SvxSearchItem* pSearchItem = (const SvxSearchItem*) pItem; + const SvxSearchItem* pSearchItem = static_cast<const SvxSearchItem*>(pItem); ScGlobal::SetSearchItem( *pSearchItem ); bool bSuccess = SearchAndReplace( pSearchItem, true, rReq.IsAPI() ); @@ -236,7 +236,7 @@ void ScTabViewShell::ExecSearch( SfxRequest& rReq ) SvxSearchDialogWrapper::GetChildWindowId()); if (pChildWindow) { - SvxSearchDialog* pSearchDlg = (SvxSearchDialog*)(pChildWindow->GetWindow()); + SvxSearchDialog* pSearchDlg = static_cast<SvxSearchDialog*>(pChildWindow->GetWindow()); if( pSearchDlg ) { ScTabView* pTabView = GetViewData().GetView(); @@ -262,7 +262,7 @@ void ScTabViewShell::ExecSearch( SfxRequest& rReq ) { // Search-Item merken OSL_ENSURE( pItem->ISA(SvxSearchItem), "falsches Item" ); - ScGlobal::SetSearchItem( *(const SvxSearchItem*) pItem ); + ScGlobal::SetSearchItem( *static_cast<const SvxSearchItem*>(pItem )); } else { @@ -282,9 +282,9 @@ void ScTabViewShell::ExecSearch( SfxRequest& rReq ) // SearchItem fuellen - aSearchItem.SetSearchString(((SfxStringItem*)pItem)->GetValue()); + aSearchItem.SetSearchString(static_cast<const SfxStringItem*>(pItem)->GetValue()); if(SfxItemState::SET == pReqArgs->GetItemState(FN_PARAM_1, false, &pItem)) - aSearchItem.SetReplaceString(((SfxStringItem*)pItem)->GetValue()); + aSearchItem.SetReplaceString(static_cast<const SfxStringItem*>(pItem)->GetValue()); if (nSlot == FID_SEARCH) aSearchItem.SetCommand(SVX_SEARCHCMD_FIND); @@ -306,7 +306,7 @@ void ScTabViewShell::ExecSearch( SfxRequest& rReq ) SvxSearchDialogWrapper::GetChildWindowId()); if (pChildWindow) { - SvxSearchDialog* pSearchDlg = (SvxSearchDialog*)(pChildWindow->GetWindow()); + SvxSearchDialog* pSearchDlg = static_cast<SvxSearchDialog*>(pChildWindow->GetWindow()); if( pSearchDlg ) { ScTabView* pTabView = GetViewData().GetView(); |