diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-03-09 13:28:49 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-03-09 16:27:47 +0000 |
commit | 938caeaf5850b63ed74c1d8a4d95c3bedbb66298 (patch) | |
tree | 7f5ec91beebc475c084bf44d51b4a450c22f2058 /basctl | |
parent | 5748d6bad2e16673bed50374a7d8e1f4ba0fc7fc (diff) |
cppcheck: cstyleCast
Change-Id: I3a1aaafe30f13f2eb388f7db3d78ecafaf0a4a2d
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/baside2.cxx | 2 | ||||
-rw-r--r-- | basctl/source/basicide/baside2b.cxx | 2 | ||||
-rw-r--r-- | basctl/source/basicide/basobj2.cxx | 2 | ||||
-rw-r--r-- | basctl/source/basicide/bastypes.cxx | 2 |
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); |