summaryrefslogtreecommitdiff
path: root/framework/source/inc/pattern/window.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'framework/source/inc/pattern/window.hxx')
-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 ----------------------------