summaryrefslogtreecommitdiff
path: root/framework/source/uielement
diff options
context:
space:
mode:
Diffstat (limited to 'framework/source/uielement')
-rw-r--r--framework/source/uielement/statusbarwrapper.cxx16
1 files changed, 5 insertions, 11 deletions
diff --git a/framework/source/uielement/statusbarwrapper.cxx b/framework/source/uielement/statusbarwrapper.cxx
index 8ce6e48e5eb1..845a0b9269cf 100644
--- a/framework/source/uielement/statusbarwrapper.cxx
+++ b/framework/source/uielement/statusbarwrapper.cxx
@@ -137,11 +137,9 @@ void SAL_CALL StatusBarWrapper::updateSettings()
try
{
- StatusBarManager* pStatusBarManager = static_cast< StatusBarManager *>( m_xStatusBarManager.get() );
-
m_xConfigData = m_xConfigSource->getSettings( m_aResourceURL, false );
if ( m_xConfigData.is() )
- pStatusBarManager->FillStatusBar( m_xConfigData );
+ m_xStatusBarManager->FillStatusBar( m_xConfigData );
}
catch ( const NoSuchElementException& )
{
@@ -152,15 +150,11 @@ Reference< XInterface > SAL_CALL StatusBarWrapper::getRealInterface()
{
SolarMutexGuard g;
- if ( m_xStatusBarManager.is() )
+ if ( m_xStatusBarManager )
{
- StatusBarManager* pStatusBarManager = static_cast< StatusBarManager *>( m_xStatusBarManager.get() );
- if ( pStatusBarManager )
- {
- vcl::Window* pWindow = pStatusBarManager->GetStatusBar();
- if ( pWindow )
- return Reference< XInterface >( VCLUnoHelper::GetInterface( pWindow ), UNO_QUERY );
- }
+ vcl::Window* pWindow = m_xStatusBarManager->GetStatusBar();
+ if ( pWindow )
+ return Reference< XInterface >( VCLUnoHelper::GetInterface( pWindow ), UNO_QUERY );
}
return Reference< XInterface >();