summaryrefslogtreecommitdiff
path: root/sfx2/source/dialog/dockwin.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/dialog/dockwin.cxx')
-rw-r--r--sfx2/source/dialog/dockwin.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/sfx2/source/dialog/dockwin.cxx b/sfx2/source/dialog/dockwin.cxx
index 1bcf9866fba3..e10da5d97852 100644
--- a/sfx2/source/dialog/dockwin.cxx
+++ b/sfx2/source/dialog/dockwin.cxx
@@ -176,14 +176,12 @@ SfxDockingWrapper::SfxDockingWrapper( Window* pParentWnd ,
uno::UNO_QUERY );
}
- static uno::WeakReference< frame::XModuleManager > m_xModuleManager;
+ static uno::WeakReference< frame::XModuleManager2 > m_xModuleManager;
- uno::Reference< frame::XModuleManager > xModuleManager( m_xModuleManager );
+ uno::Reference< frame::XModuleManager2 > xModuleManager( m_xModuleManager );
if ( !xModuleManager.is() )
{
- xModuleManager = uno::Reference< frame::XModuleManager >(
- frame::ModuleManager::create(comphelper::ComponentContext(xServiceManager).getUNOContext()),
- uno::UNO_QUERY );
+ xModuleManager = frame::ModuleManager::create(comphelper::ComponentContext(xServiceManager).getUNOContext());
m_xModuleManager = xModuleManager;
}