diff options
Diffstat (limited to 'svx/source/form/fmtextcontrolshell.cxx')
-rw-r--r-- | svx/source/form/fmtextcontrolshell.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/form/fmtextcontrolshell.cxx b/svx/source/form/fmtextcontrolshell.cxx index 154ebe5215a7..4ffc6f89704b 100644 --- a/svx/source/form/fmtextcontrolshell.cxx +++ b/svx/source/form/fmtextcontrolshell.cxx @@ -49,6 +49,7 @@ #include <com/sun/star/container/XChild.hpp> #include <com/sun/star/awt/XFocusListener.hpp> #include <com/sun/star/awt/XMouseListener.hpp> +#include <com/sun/star/util/URLTransformer.hpp> /** === end UNO includes === **/ #include <comphelper/componentcontext.hxx> @@ -1316,8 +1317,7 @@ namespace svx { if ( !m_xURLTransformer.is() ) { - ::comphelper::ComponentContext aContext( ::comphelper::getProcessServiceFactory() ); - aContext.createComponent( "com.sun.star.util.URLTransformer", m_xURLTransformer ); + m_xURLTransformer = util::URLTransformer::create( ::comphelper::getProcessComponentContext() ); } if ( m_xURLTransformer.is() ) m_xURLTransformer->parseStrict( _rURL ); |