diff options
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); } //-------------------------------------------------------------------- |