summaryrefslogtreecommitdiff
path: root/framework/source/recording
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-05-27 15:38:47 +0200
committerNoel Grandin <noel@peralex.com>2013-05-28 08:10:25 +0200
commite0fc16f769efc7b0c0b517a80523bb4e2c87b618 (patch)
treeeb7271dcdf3f46bd3c9205548082a9d2cfd9a05a /framework/source/recording
parentc380b432e32647ca9583b688c9b2f5688d7c2695 (diff)
fdo#46808, Convert some XMultiServiceFactory to XComponentContext
Change-Id: I8272ecab34711654ed27625a571cf2553ffd7468
Diffstat (limited to 'framework/source/recording')
-rw-r--r--framework/source/recording/dispatchrecorder.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/framework/source/recording/dispatchrecorder.cxx b/framework/source/recording/dispatchrecorder.cxx
index 02451e107f86..708b4cdd2dbf 100644
--- a/framework/source/recording/dispatchrecorder.cxx
+++ b/framework/source/recording/dispatchrecorder.cxx
@@ -56,7 +56,7 @@ DEFINE_XTYPEPROVIDER_6(
css::container::XIndexAccess,
css::container::XElementAccess)
-DEFINE_XSERVICEINFO_MULTISERVICE(
+DEFINE_XSERVICEINFO_MULTISERVICE_2(
DispatchRecorder,
::cppu::OWeakObject,
OUString("com.sun.star.frame.DispatchRecorder"),
@@ -119,11 +119,10 @@ Sequence< Any > make_seq_out_of_struct(
}
//***********************************************************************
-DispatchRecorder::DispatchRecorder( const css::uno::Reference< css::lang::XMultiServiceFactory >& xSMGR )
+DispatchRecorder::DispatchRecorder( const css::uno::Reference< css::uno::XComponentContext >& xContext )
: ThreadHelpBase ( &Application::GetSolarMutex() )
, ::cppu::OWeakObject( )
- , m_xSMGR ( xSMGR )
- , m_xConverter( css::script::Converter::create(comphelper::getComponentContext(m_xSMGR)) )
+ , m_xConverter( css::script::Converter::create(xContext) )
{
}