summaryrefslogtreecommitdiff
path: root/framework/source/jobs/jobdispatch.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-10-16 11:10:43 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-10-23 17:44:16 +0200
commit432c0f491712870b82dcf5dee7b98fa5440bfa1a (patch)
tree485da33b0ce3e04d51dec054940317539c12d914 /framework/source/jobs/jobdispatch.cxx
parentb493b5a284d5a629d16e733197c7840fb33b469c (diff)
fdo#46808, use service constructor for frame::ModuleManager
Change-Id: Iae2bd22a22213274d4a7697345b879f6573a30f0
Diffstat (limited to 'framework/source/jobs/jobdispatch.cxx')
-rw-r--r--framework/source/jobs/jobdispatch.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/framework/source/jobs/jobdispatch.cxx b/framework/source/jobs/jobdispatch.cxx
index fd0b5eee53fd..8672062f1cd7 100644
--- a/framework/source/jobs/jobdispatch.cxx
+++ b/framework/source/jobs/jobdispatch.cxx
@@ -38,7 +38,7 @@
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/frame/DispatchResultState.hpp>
-#include <com/sun/star/frame/XModuleManager.hpp>
+#include <com/sun/star/frame/ModuleManager.hpp>
#include <rtl/ustrbuf.hxx>
#include <vcl/svapp.hxx>
@@ -129,10 +129,8 @@ void SAL_CALL JobDispatch::initialize( const css::uno::Sequence< css::uno::Any >
{
lArguments[a] >>= m_xFrame;
- css::uno::Reference< css::frame::XModuleManager > xModuleManager(
- m_xSMGR->createInstance(
- SERVICENAME_MODULEMANAGER ),
- css::uno::UNO_QUERY_THROW );
+ css::uno::Reference< css::frame::XModuleManager2 > xModuleManager =
+ css::frame::ModuleManager::create(comphelper::getComponentContext(m_xSMGR));
try
{
m_sModuleIdentifier = xModuleManager->identify( m_xFrame );