diff options
author | Noel Grandin <noel@peralex.com> | 2014-10-21 09:12:47 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-10-23 12:36:14 +0200 |
commit | 50a8c89f36b3b8f2d029a0bedc1ed9362807321d (patch) | |
tree | c555ceefd72054d7af227427355dfac8baabe467 /basctl/source/basicide/macrodlg.cxx | |
parent | cb414252b8d5fcff516291ed4b9db75933e5331a (diff) |
loplugin: cstylecast
Change-Id: I9134aff4f2e6bff43ebb78c605e0ff521eac6ffc
Diffstat (limited to 'basctl/source/basicide/macrodlg.cxx')
-rw-r--r-- | basctl/source/basicide/macrodlg.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/basctl/source/basicide/macrodlg.cxx b/basctl/source/basicide/macrodlg.cxx index 5079378544e2..82b010565cbd 100644 --- a/basctl/source/basicide/macrodlg.cxx +++ b/basctl/source/basicide/macrodlg.cxx @@ -268,7 +268,7 @@ SbMethod* MacroChooser::GetMacro() if ( pEntry ) { OUString aMacroName( m_pMacroBox->GetEntryText( pEntry ) ); - pMethod = (SbMethod*)pModule->GetMethods()->Find( aMacroName, SbxCLASS_METHOD ); + pMethod = static_cast<SbMethod*>(pModule->GetMethods()->Find( aMacroName, SbxCLASS_METHOD )); } } return pMethod; @@ -361,7 +361,7 @@ SbMethod* MacroChooser::CreateMacro() pModule = pBasic->FindModule( aModName ); } else if ( pBasic->GetModules()->Count() ) - pModule = (SbModule*)pBasic->GetModules()->Get( 0 ); + pModule = static_cast<SbModule*>(pBasic->GetModules()->Get( 0 )); if ( !pModule ) { @@ -513,7 +513,7 @@ IMPL_LINK( MacroChooser, BasicSelectHdl, SvTreeListBox *, pBox ) size_t nMacroCount = pModule->GetMethods()->Count(); for ( size_t iMeth = 0; iMeth < nMacroCount; iMeth++ ) { - SbMethod* pMethod = (SbMethod*)pModule->GetMethods()->Get( iMeth ); + SbMethod* pMethod = static_cast<SbMethod*>(pModule->GetMethods()->Get( iMeth )); if( pMethod->IsHidden() ) continue; DBG_ASSERT( pMethod, "Methode nicht gefunden! (NULL)" ); @@ -615,7 +615,7 @@ IMPL_LINK( MacroChooser, ButtonHdl, Button *, pButton ) { SbMethod* pMethod = GetMacro(); SbModule* pModule = pMethod ? pMethod->GetModule() : NULL; - StarBASIC* pBasic = pModule ? (StarBASIC*)pModule->GetParent() : NULL; + StarBASIC* pBasic = pModule ? static_cast<StarBASIC*>(pModule->GetParent()) : NULL; BasicManager* pBasMgr = pBasic ? FindBasicManager(pBasic) : NULL; if ( pBasMgr ) { |