diff options
Diffstat (limited to 'framework/source/recording/dispatchrecorder.cxx')
-rw-r--r-- | framework/source/recording/dispatchrecorder.cxx | 7 |
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) ) { } |