diff options
author | Noel Grandin <noel@peralex.com> | 2012-08-21 08:07:58 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-08-27 15:40:07 +0200 |
commit | 8638f1e72a3fe830c0e8dcc1bd847d4fb9e599ee (patch) | |
tree | d398e9c43b4dd1570145210690a75762d81f4dc4 /pyuno | |
parent | 4381f3dd5ae9e042840a16f69d07267208160420 (diff) |
fdo#46808, Adapt script::Converter service code to new style
Change-Id: I19b3ba7c978e02ce865360f0411007525012149c
Diffstat (limited to 'pyuno')
-rw-r--r-- | pyuno/source/module/pyuno_runtime.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/pyuno/source/module/pyuno_runtime.cxx b/pyuno/source/module/pyuno_runtime.cxx index b021fdd43e1a..3196be6e399f 100644 --- a/pyuno/source/module/pyuno_runtime.cxx +++ b/pyuno/source/module/pyuno_runtime.cxx @@ -30,6 +30,7 @@ #include <typelib/typedescription.hxx> #include <com/sun/star/beans/XMaterialHolder.hpp> +#include <com/sun/star/script/Converter.hpp> using rtl::OUString; using rtl::OUStringToOString; @@ -50,6 +51,7 @@ using com::sun::star::uno::XComponentContext; using com::sun::star::lang::XSingleServiceFactory; using com::sun::star::lang::XUnoTunnel; using com::sun::star::reflection::XIdlReflection; +using com::sun::star::script::Converter; using com::sun::star::script::XTypeConverter; using com::sun::star::script::XInvocationAdapterFactory2; using com::sun::star::script::XInvocation; @@ -256,11 +258,7 @@ PyRef stRuntimeImpl::create( const Reference< XComponentContext > &ctx ) OUString( "pyuno: couldn't instantiate invocation service" ), Reference< XInterface > () ); - c->xTypeConverter = Reference< XTypeConverter > ( - ctx->getServiceManager()->createInstanceWithContext( - OUString( "com.sun.star.script.Converter" ), - ctx ), - UNO_QUERY ); + c->xTypeConverter = Converter::create(ctx); if( ! c->xTypeConverter.is() ) throw RuntimeException( OUString( "pyuno: couldn't instantiate typeconverter service" ), |