summaryrefslogtreecommitdiff
path: root/sw/source/ui/vba
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-12-02 14:33:47 +0200
committerNoel Grandin <noel@peralex.com>2014-12-02 14:34:10 +0200
commit8dba4716d2e7fcaf00cc347d4989c24539ea0fe6 (patch)
treed7bbdcd98a8270744429c36d23975002e03648eb /sw/source/ui/vba
parent724bc1ac11bd9a07d3391a8535d308353003e3b9 (diff)
loplugin: cstylecast
Change-Id: I922fe2b4177687863d9749c2f46aab9ddd86621a
Diffstat (limited to 'sw/source/ui/vba')
-rw-r--r--sw/source/ui/vba/vbawindow.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/vba/vbawindow.cxx b/sw/source/ui/vba/vbawindow.cxx
index 232a00f270ec..54fd8f27eed7 100644
--- a/sw/source/ui/vba/vbawindow.cxx
+++ b/sw/source/ui/vba/vbawindow.cxx
@@ -80,7 +80,7 @@ SwVbaWindow::getWindowState() throw (uno::RuntimeException, std::exception)
sal_Int32 nwindowState = word::WdWindowState::wdWindowStateNormal;
SwView* pView = word::getView( m_xModel );
SfxViewFrame* pViewFrame = pView -> GetViewFrame();
- WorkWindow* pWork = (WorkWindow*) pViewFrame->GetFrame().GetSystemWindow();
+ WorkWindow* pWork = static_cast<WorkWindow*>( pViewFrame->GetFrame().GetSystemWindow() );
if ( pWork )
{
if ( pWork -> IsMaximized())
@@ -98,7 +98,7 @@ SwVbaWindow::setWindowState( const uno::Any& _windowstate ) throw (uno::RuntimeE
_windowstate >>= nwindowState;
SwView* pView = word::getView( m_xModel );
SfxViewFrame* pViewFrame = pView -> GetViewFrame();
- WorkWindow* pWork = (WorkWindow*) pViewFrame->GetFrame().GetSystemWindow();
+ WorkWindow* pWork = static_cast<WorkWindow*>( pViewFrame->GetFrame().GetSystemWindow() );
if ( pWork )
{
if ( nwindowState == word::WdWindowState::wdWindowStateMaximize )