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 /extensions/source | |
parent | 4381f3dd5ae9e042840a16f69d07267208160420 (diff) |
fdo#46808, Adapt script::Converter service code to new style
Change-Id: I19b3ba7c978e02ce865360f0411007525012149c
Diffstat (limited to 'extensions/source')
-rw-r--r-- | extensions/source/propctrlr/genericpropertyhandler.cxx | 6 | ||||
-rw-r--r-- | extensions/source/propctrlr/propertyhandler.cxx | 6 |
2 files changed, 4 insertions, 8 deletions
diff --git a/extensions/source/propctrlr/genericpropertyhandler.cxx b/extensions/source/propctrlr/genericpropertyhandler.cxx index 6d630decda24..4d19034ce73e 100644 --- a/extensions/source/propctrlr/genericpropertyhandler.cxx +++ b/extensions/source/propctrlr/genericpropertyhandler.cxx @@ -36,6 +36,7 @@ #include <com/sun/star/inspection/PropertyControlType.hpp> #include <com/sun/star/inspection/XHyperlinkControl.hpp> #include <com/sun/star/awt/XActionListener.hpp> +#include <com/sun/star/script/Converter.hpp> #include <com/sun/star/util/URLTransformer.hpp> #include <com/sun/star/util/XURLTransformer.hpp> #include <com/sun/star/frame/XDispatchProvider.hpp> @@ -316,10 +317,7 @@ namespace pcr { DBG_CTOR( GenericPropertyHandler, NULL ); - m_xTypeConverter = Reference< XTypeConverter >( - m_aContext.createComponent( "com.sun.star.script.Converter" ), - UNO_QUERY_THROW - ); + m_xTypeConverter = Converter::create(_rxContext); } //-------------------------------------------------------------------- diff --git a/extensions/source/propctrlr/propertyhandler.cxx b/extensions/source/propctrlr/propertyhandler.cxx index b41c0fc2255a..d19ebf358e4f 100644 --- a/extensions/source/propctrlr/propertyhandler.cxx +++ b/extensions/source/propctrlr/propertyhandler.cxx @@ -35,6 +35,7 @@ #include <com/sun/star/beans/PropertyAttribute.hpp> #include <com/sun/star/lang/NullPointerException.hpp> #include <com/sun/star/util/XModifiable.hpp> +#include <com/sun/star/script/Converter.hpp> #include <tools/debug.hxx> #include <unotools/confignode.hxx> @@ -73,10 +74,7 @@ namespace pcr { DBG_CTOR( PropertyHandler, NULL ); - m_xTypeConverter = Reference< XTypeConverter >( - m_aContext.createComponent( "com.sun.star.script.Converter" ), - UNO_QUERY_THROW - ); + m_xTypeConverter = Converter::create(_rxContext); } //-------------------------------------------------------------------- |