diff options
author | Noel Grandin <noel@peralex.com> | 2013-05-14 09:52:58 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-05-14 13:39:29 +0200 |
commit | 8bf8a2f3493273cb408ef86c5d971e18fa8fc40b (patch) | |
tree | 1b963951e586f7e60dd212febb0985213330421a /pyuno | |
parent | 9adf9a2d63927ef3e3573ce062bb741659534422 (diff) |
fdo#46808, Convert script::InvocationAdapterFactory to new style
Change-Id: I2fe24c863f4c43471f46032ed15fcd5b98863fc1
Diffstat (limited to 'pyuno')
-rw-r--r-- | pyuno/source/module/pyuno_runtime.cxx | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/pyuno/source/module/pyuno_runtime.cxx b/pyuno/source/module/pyuno_runtime.cxx index 15615ba48dcb..96d8c15fc795 100644 --- a/pyuno/source/module/pyuno_runtime.cxx +++ b/pyuno/source/module/pyuno_runtime.cxx @@ -33,6 +33,7 @@ #include <com/sun/star/beans/XMaterialHolder.hpp> #include <com/sun/star/beans/Introspection.hpp> #include <com/sun/star/script/Converter.hpp> +#include <com/sun/star/script/InvocationAdapterFactory.hpp> #include <com/sun/star/reflection/theCoreReflection.hpp> @@ -267,15 +268,7 @@ PyRef stRuntimeImpl::create( const Reference< XComponentContext > &ctx ) c->xCoreReflection = theCoreReflection::get(ctx); - c->xAdapterFactory = Reference< XInvocationAdapterFactory2 > ( - ctx->getServiceManager()->createInstanceWithContext( - OUString( "com.sun.star.script.InvocationAdapterFactory" ), - ctx ), - UNO_QUERY ); - if( ! c->xAdapterFactory.is() ) - throw RuntimeException( - OUString( "pyuno: couldn't instantiate invocation adapter factory service" ), - Reference< XInterface > () ); + c->xAdapterFactory = css::script::InvocationAdapterFactory::create(ctx); c->xIntrospection = Introspection::create(ctx); |