summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-10-21 22:56:59 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-10-21 23:30:59 +0200
commit6cc508aec4e30c72c00eac9e77fb6dd10cc093e9 (patch)
tree7e812b5dede4b386e0d60859130d415cac1d6494 /svx
parentb13c8de265a6454c4677f52fd9a3440ac3279c51 (diff)
Remove comphelper::ComponentContext
Change-Id: Idc5974e5a2ec68e8f1b2312a88fab15092c82788
Diffstat (limited to 'svx')
-rw-r--r--svx/source/form/fmundo.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/svx/source/form/fmundo.cxx b/svx/source/form/fmundo.cxx
index f8b17f1f9fcc..313757217c61 100644
--- a/svx/source/form/fmundo.cxx
+++ b/svx/source/form/fmundo.cxx
@@ -53,7 +53,6 @@
#include <comphelper/property.hxx>
#include <comphelper/uno3.hxx>
#include <comphelper/stl_types.hxx>
-#include <comphelper/componentcontext.hxx>
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::awt;
@@ -114,8 +113,12 @@ private:
try
{
- ::comphelper::ComponentContext const aContext( ::comphelper::getProcessComponentContext() );
- Reference< XScriptListener > const xScriptListener( aContext.createComponent( "ooo.vba.EventListener" ), UNO_QUERY_THROW );
+ css::uno::Reference<css::uno::XComponentContext> context(
+ comphelper::getProcessComponentContext());
+ Reference< XScriptListener > const xScriptListener(
+ context->getServiceManager()->createInstanceWithContext(
+ "ooo.vba.EventListener", context),
+ UNO_QUERY_THROW);
Reference< XPropertySet > const xListenerProps( xScriptListener, UNO_QUERY_THROW );
// SfxObjectShellRef is good here since the model controls the lifetime of the shell
SfxObjectShellRef const xObjectShell = m_rModel.GetObjectShell();