diff options
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/tdoc/tdoc_docmgr.cxx | 5 | ||||
-rw-r--r-- | ucb/source/ucp/tdoc/tdoc_docmgr.hxx | 4 |
2 files changed, 4 insertions, 5 deletions
diff --git a/ucb/source/ucp/tdoc/tdoc_docmgr.cxx b/ucb/source/ucp/tdoc/tdoc_docmgr.cxx index c0040cd98693..c3a94836d76a 100644 --- a/ucb/source/ucp/tdoc/tdoc_docmgr.cxx +++ b/ucb/source/ucp/tdoc/tdoc_docmgr.cxx @@ -702,9 +702,8 @@ bool OfficeDocumentsManager::isBasicIDE( { try { - m_xModuleMgr = uno::Reference< frame::XModuleManager >( - frame::ModuleManager::create(comphelper::ComponentContext(m_xSMgr).getUNOContext()), - uno::UNO_QUERY ); + m_xModuleMgr = frame::ModuleManager::create( + comphelper::ComponentContext(m_xSMgr).getUNOContext()); } catch ( uno::Exception const & ) { diff --git a/ucb/source/ucp/tdoc/tdoc_docmgr.hxx b/ucb/source/ucp/tdoc/tdoc_docmgr.hxx index 9b40fe323d10..ff1a07e885fe 100644 --- a/ucb/source/ucp/tdoc/tdoc_docmgr.hxx +++ b/ucb/source/ucp/tdoc/tdoc_docmgr.hxx @@ -39,7 +39,7 @@ #include "com/sun/star/document/XEventListener.hpp" #include "com/sun/star/embed/XStorage.hpp" #include "com/sun/star/frame/XModel.hpp" -#include "com/sun/star/frame/XModuleManager.hpp" +#include "com/sun/star/frame/XModuleManager2.hpp" #include "com/sun/star/util/XCloseListener.hpp" namespace tdoc_ucp { @@ -197,7 +197,7 @@ namespace tdoc_ucp { com::sun::star::uno::Reference< com::sun::star::document::XEventBroadcaster > m_xDocEvtNotifier; com::sun::star::uno::Reference< - com::sun::star::frame::XModuleManager > m_xModuleMgr; + com::sun::star::frame::XModuleManager2 > m_xModuleMgr; DocumentList m_aDocs; OfficeDocumentsEventListener * m_pDocEventListener; com::sun::star::uno::Reference< |