diff options
author | Noel Grandin <noel@peralex.com> | 2014-09-29 13:55:54 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-10-01 13:08:42 +0200 |
commit | 787ca46d94cfcd6349f42954d6abbeed030a5398 (patch) | |
tree | 9e20a3d462c83b63a938966bf4613d00392dc20c /framework/source/helper | |
parent | f56a5b9029006c27532279da91366d34d26cde54 (diff) |
loplugin: cstylecast
Change-Id: Idac41288539ff171e1c9fb0e12b172a311878ed6
Diffstat (limited to 'framework/source/helper')
-rw-r--r-- | framework/source/helper/persistentwindowstate.cxx | 6 | ||||
-rw-r--r-- | framework/source/helper/titlebarupdate.cxx | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/framework/source/helper/persistentwindowstate.cxx b/framework/source/helper/persistentwindowstate.cxx index 2c1d3038beb1..1599447eef8c 100644 --- a/framework/source/helper/persistentwindowstate.cxx +++ b/framework/source/helper/persistentwindowstate.cxx @@ -240,7 +240,7 @@ OUString PersistentWindowState::implst_getWindowStateFromWindow(const css::uno:: sal_uLong nMask = WINDOWSTATE_MASK_ALL; nMask &= ~(WINDOWSTATE_MASK_MINIMIZED); sWindowState = OStringToOUString( - ((SystemWindow*)pWindow)->GetWindowState(nMask), + static_cast<SystemWindow*>(pWindow)->GetWindowState(nMask), RTL_TEXTENCODING_UTF8); } // <- SOLAR SAFE ------------------------ @@ -272,8 +272,8 @@ void PersistentWindowState::implst_setWindowStateOnWindow(const css::uno::Refere if (!bSystemWindow && !bWorkWindow) return; - SystemWindow* pSystemWindow = (SystemWindow*)pWindow; - WorkWindow* pWorkWindow = (WorkWindow* )pWindow; + SystemWindow* pSystemWindow = static_cast<SystemWindow*>(pWindow); + WorkWindow* pWorkWindow = static_cast<WorkWindow* >(pWindow); // dont save this special state! if (pWorkWindow->IsMinimized()) diff --git a/framework/source/helper/titlebarupdate.cxx b/framework/source/helper/titlebarupdate.cxx index abd968674c08..762630911984 100644 --- a/framework/source/helper/titlebarupdate.cxx +++ b/framework/source/helper/titlebarupdate.cxx @@ -185,7 +185,7 @@ void TitleBarUpdate::impl_updateApplicationID(const css::uno::Reference< css::fr ( pWindow->GetType() == WINDOW_WORKWINDOW ) ) { - WorkWindow* pWorkWindow = (WorkWindow*)pWindow; + WorkWindow* pWorkWindow = static_cast<WorkWindow*>(pWindow); pWorkWindow->SetApplicationID( sApplicationID ); } // <- VCL SYNCHRONIZED @@ -302,7 +302,7 @@ void TitleBarUpdate::impl_updateIcon(const css::uno::Reference< css::frame::XFra ( pWindow->GetType() == WINDOW_WORKWINDOW ) ) { - WorkWindow* pWorkWindow = (WorkWindow*)pWindow; + WorkWindow* pWorkWindow = static_cast<WorkWindow*>(pWindow); pWorkWindow->SetIcon( (sal_uInt16)nIcon ); css::uno::Reference< css::frame::XModel > xModel = xController->getModel(); @@ -336,7 +336,7 @@ void TitleBarUpdate::impl_updateTitle(const css::uno::Reference< css::frame::XFr ( pWindow->GetType() == WINDOW_WORKWINDOW ) ) { - WorkWindow* pWorkWindow = (WorkWindow*)pWindow; + WorkWindow* pWorkWindow = static_cast<WorkWindow*>(pWindow); pWorkWindow->SetText( sTitle ); } // <- VCL SYNCHRONIZED |