summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/baside2.cxx2
-rw-r--r--basctl/source/basicide/baside2b.cxx2
-rw-r--r--basctl/source/basicide/basobj2.cxx2
-rw-r--r--basctl/source/basicide/bastypes.cxx2
4 files changed, 4 insertions, 4 deletions
diff --git a/basctl/source/basicide/baside2.cxx b/basctl/source/basicide/baside2.cxx
index d73ecd3899be..35ddb67cf5df 100644
--- a/basctl/source/basicide/baside2.cxx
+++ b/basctl/source/basicide/baside2.cxx
@@ -218,7 +218,7 @@ SbModuleRef ModulWindow::XModule()
if ( pBasic )
{
xBasic = pBasic;
- xModule = (SbModule*)pBasic->FindModule( GetName() );
+ xModule = pBasic->FindModule( GetName() );
}
}
}
diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx
index 58a28f89f736..ca647a855a90 100644
--- a/basctl/source/basicide/baside2b.cxx
+++ b/basctl/source/basicide/baside2b.cxx
@@ -1811,7 +1811,7 @@ IMPL_LINK_NOARG_INLINE_START(WatchWindow, TreeListHdl)
{
SvTreeListEntry* pCurEntry = aTreeListBox.GetCurEntry();
if ( pCurEntry && pCurEntry->GetUserData() )
- aXEdit.SetText( ((WatchItem*)pCurEntry->GetUserData())->maName );
+ aXEdit.SetText( static_cast<WatchItem*>(pCurEntry->GetUserData())->maName );
return 0;
}
diff --git a/basctl/source/basicide/basobj2.cxx b/basctl/source/basicide/basobj2.cxx
index 98348758e73a..3bde7a4b32fe 100644
--- a/basctl/source/basicide/basobj2.cxx
+++ b/basctl/source/basicide/basobj2.cxx
@@ -173,7 +173,7 @@ bool RenameModule (
pWin->SetName( rNewName );
// set new module in module window
- pWin->SetSbModule( (SbModule*)pWin->GetBasic()->FindModule( rNewName ) );
+ pWin->SetSbModule( pWin->GetBasic()->FindModule( rNewName ) );
// update tabwriter
sal_uInt16 nId = pShell->GetWindowId( pWin );
diff --git a/basctl/source/basicide/bastypes.cxx b/basctl/source/basicide/bastypes.cxx
index e6039e342ecb..88fd1cec6323 100644
--- a/basctl/source/basicide/bastypes.cxx
+++ b/basctl/source/basicide/bastypes.cxx
@@ -522,7 +522,7 @@ void TabBar::Command( const CommandEvent& rCEvt )
Shell::WindowTableIt it = aWindowTable.find( GetCurPageId() );
if (it != aWindowTable.end() && dynamic_cast<ModulWindow*>(it->second))
{
- SbModule* pActiveModule = (SbModule*)pBasic->FindModule( it->second->GetName() );
+ SbModule* pActiveModule = pBasic->FindModule( it->second->GetName() );
if( pActiveModule && ( pActiveModule->GetModuleType() == script::ModuleType::DOCUMENT ) )
{
aPopup.EnableItem(SID_BASICIDE_DELETECURRENT, false);