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/vba/vbawindow.cxx | |
parent | 223a5b75457e38d70db63f3992ff601c3e381639 (diff) |
loplugin: cstylecast
Change-Id: I42cd0be78478536322357ca7a03cf30e624b1afc
Diffstat (limited to 'sc/source/ui/vba/vbawindow.cxx')
-rw-r--r-- | sc/source/ui/vba/vbawindow.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/vba/vbawindow.cxx b/sc/source/ui/vba/vbawindow.cxx index b5daf6cf87d3..d6090a877a1e 100644 --- a/sc/source/ui/vba/vbawindow.cxx +++ b/sc/source/ui/vba/vbawindow.cxx @@ -102,7 +102,7 @@ public: ScModelObj* pModel = static_cast< ScModelObj* >( m_xModel.get() ); if ( !pModel ) throw uno::RuntimeException("Cannot obtain current document" ); - ScDocShell* pDocShell = (ScDocShell*)pModel->GetEmbeddedObject(); + ScDocShell* pDocShell = static_cast<ScDocShell*>(pModel->GetEmbeddedObject()); if ( !pDocShell ) throw uno::RuntimeException("Cannot obtain docshell" ); ScTabViewShell* pViewShell = excel::getBestViewShell( m_xModel ); @@ -411,7 +411,7 @@ ScVbaWindow::getWindowState() throw (uno::RuntimeException, std::exception) // !! TODO !! get view shell from controller ScTabViewShell* pViewShell = excel::getBestViewShell( m_xModel ); SfxViewFrame* pViewFrame = pViewShell -> GetViewFrame(); - WorkWindow* pWork = (WorkWindow*) pViewFrame->GetFrame().GetSystemWindow(); + WorkWindow* pWork = static_cast<WorkWindow*>( pViewFrame->GetFrame().GetSystemWindow() ); if ( pWork ) { if ( pWork -> IsMaximized()) @@ -430,7 +430,7 @@ ScVbaWindow::setWindowState( const uno::Any& _windowstate ) throw (uno::RuntimeE // !! TODO !! get view shell from controller ScTabViewShell* pViewShell = excel::getBestViewShell( m_xModel ); SfxViewFrame* pViewFrame = pViewShell -> GetViewFrame(); - WorkWindow* pWork = (WorkWindow*) pViewFrame->GetFrame().GetSystemWindow(); + WorkWindow* pWork = static_cast<WorkWindow*>( pViewFrame->GetFrame().GetSystemWindow() ); if ( pWork ) { if ( nwindowState == xlMaximized) |