From 282e954477f904524ca192256c4e33ab0585e2f6 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 27 Oct 2014 14:18:59 +0200 Subject: loplugin: cstylecast Change-Id: I42cd0be78478536322357ca7a03cf30e624b1afc --- sc/source/ui/view/tabvwshe.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'sc/source/ui/view/tabvwshe.cxx') 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(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(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(pItem )); } else { @@ -282,9 +282,9 @@ void ScTabViewShell::ExecSearch( SfxRequest& rReq ) // SearchItem fuellen - aSearchItem.SetSearchString(((SfxStringItem*)pItem)->GetValue()); + aSearchItem.SetSearchString(static_cast(pItem)->GetValue()); if(SfxItemState::SET == pReqArgs->GetItemState(FN_PARAM_1, false, &pItem)) - aSearchItem.SetReplaceString(((SfxStringItem*)pItem)->GetValue()); + aSearchItem.SetReplaceString(static_cast(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(pChildWindow->GetWindow()); if( pSearchDlg ) { ScTabView* pTabView = GetViewData().GetView(); -- cgit