diff options
author | Noel Grandin <noel@peralex.com> | 2014-09-19 15:17:37 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-09-29 12:50:34 +0200 |
commit | 26f2da07b1c6074e519d28557a3d1d5518ff6cb4 (patch) | |
tree | 6981a11bc7e6fc897771277a7b60a6e3a88cff29 /vcl/source/window/stacking.cxx | |
parent | d9632a6effabe8554c4e7e05ee24c16acd0f4f95 (diff) |
loplugin: cstylecast
Change-Id: I58ec00d6f8a4cc6188877db1330c5e32c9db12e5
Diffstat (limited to 'vcl/source/window/stacking.cxx')
-rw-r--r-- | vcl/source/window/stacking.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/window/stacking.cxx b/vcl/source/window/stacking.cxx index cf6fef338580..d9fb863adfcc 100644 --- a/vcl/source/window/stacking.cxx +++ b/vcl/source/window/stacking.cxx @@ -836,7 +836,7 @@ SystemWindow* Window::GetSystemWindow() const const vcl::Window* pWin = this; while ( pWin && !pWin->IsSystemWindow() ) pWin = pWin->GetParent(); - return (SystemWindow*)pWin; + return static_cast<SystemWindow*>(const_cast<Window*>(pWin)); } static SystemWindow *ImplGetLastSystemWindow( vcl::Window *pWin ) @@ -849,7 +849,7 @@ static SystemWindow *ImplGetLastSystemWindow( vcl::Window *pWin ) while ( pMyParent ) { if ( pMyParent->IsSystemWindow() ) - pSysWin = (SystemWindow*)pMyParent; + pSysWin = static_cast<SystemWindow*>(pMyParent); pMyParent = pMyParent->GetParent(); } return pSysWin; @@ -991,7 +991,7 @@ void Window::SetParent( vcl::Window* pNewParent ) { if ( (GetType() == WINDOW_BORDERWINDOW) && (ImplGetWindow()->GetType() == WINDOW_FLOATINGWINDOW) ) - ((ImplBorderWindow*)this)->SetDisplayActive( mpWindowImpl->mpFrameData->mbHasFocus ); + static_cast<ImplBorderWindow*>(this)->SetDisplayActive( mpWindowImpl->mpFrameData->mbHasFocus ); } // when required give focus to new frame if |