summaryrefslogtreecommitdiff
path: root/framework/source/inc/pattern
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-09-29 13:55:54 +0200
committerNoel Grandin <noel@peralex.com>2014-10-01 13:08:42 +0200
commit787ca46d94cfcd6349f42954d6abbeed030a5398 (patch)
tree9e20a3d462c83b63a938966bf4613d00392dc20c /framework/source/inc/pattern
parentf56a5b9029006c27532279da91366d34d26cde54 (diff)
loplugin: cstylecast
Change-Id: Idac41288539ff171e1c9fb0e12b172a311878ed6
Diffstat (limited to 'framework/source/inc/pattern')
-rw-r--r--framework/source/inc/pattern/window.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/framework/source/inc/pattern/window.hxx b/framework/source/inc/pattern/window.hxx
index 43afe9d9f20a..7ff8d45dfaa7 100644
--- a/framework/source/inc/pattern/window.hxx
+++ b/framework/source/inc/pattern/window.hxx
@@ -57,7 +57,7 @@ static OUString getWindowState(const css::uno::Reference< css::awt::XWindow >& x
{
sal_uLong nMask = WINDOWSTATE_MASK_ALL;
nMask &= ~(WINDOWSTATE_MASK_MINIMIZED);
- sWindowState = ((SystemWindow*)pWindow)->GetWindowState(nMask);
+ sWindowState = static_cast<SystemWindow*>(pWindow)->GetWindowState(nMask);
}
}
// <- SOLAR SAFE ----------------------------
@@ -85,11 +85,11 @@ static void setWindowState(const css::uno::Reference< css::awt::XWindow >& xWind
(
// dont overwrite a might existing minimized mode!
(pWindow->GetType() != WINDOW_WORKWINDOW) ||
- (!((WorkWindow*)pWindow)->IsMinimized() )
+ (!static_cast<WorkWindow*>(pWindow)->IsMinimized() )
)
)
{
- ((SystemWindow*)pWindow)->SetWindowState(OUStringToOString(sWindowState,RTL_TEXTENCODING_UTF8));
+ static_cast<SystemWindow*>(pWindow)->SetWindowState(OUStringToOString(sWindowState,RTL_TEXTENCODING_UTF8));
}
// <- SOLAR SAFE ----------------------------