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 /basic/source | |
parent | 4381f3dd5ae9e042840a16f69d07267208160420 (diff) |
fdo#46808, Adapt script::Converter service code to new style
Change-Id: I19b3ba7c978e02ce865360f0411007525012149c
Diffstat (limited to 'basic/source')
-rw-r--r-- | basic/source/classes/sbunoobj.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/basic/source/classes/sbunoobj.cxx b/basic/source/classes/sbunoobj.cxx index 6005c7a76eec..5f44542fe620 100644 --- a/basic/source/classes/sbunoobj.cxx +++ b/basic/source/classes/sbunoobj.cxx @@ -50,7 +50,7 @@ #include <com/sun/star/script/BasicErrorException.hpp> #include <com/sun/star/script/XAllListener.hpp> #include <com/sun/star/script/XInvocationAdapterFactory.hpp> -#include <com/sun/star/script/XTypeConverter.hpp> +#include <com/sun/star/script/Converter.hpp> #include <com/sun/star/script/XDefaultProperty.hpp> #include <com/sun/star/script/XDefaultMethod.hpp> #include <com/sun/star/script/XDirectInvocation.hpp> @@ -263,11 +263,7 @@ Reference< XTypeConverter > getTypeConverter_Impl( void ) Reference< XComponentContext > xContext = getComponentContext_Impl(); if( xContext.is() ) { - Reference<XMultiComponentFactory> xSMgr = xContext->getServiceManager(); - xTypeConverter = Reference<XTypeConverter>( - xSMgr->createInstanceWithContext( - ::rtl::OUString( "com.sun.star.script.Converter"), - xContext ), UNO_QUERY ); + xTypeConverter = Converter::create(xContext); } if( !xTypeConverter.is() ) { |