From 8638f1e72a3fe830c0e8dcc1bd847d4fb9e599ee Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 21 Aug 2012 08:07:58 +0200 Subject: fdo#46808, Adapt script::Converter service code to new style Change-Id: I19b3ba7c978e02ce865360f0411007525012149c --- eventattacher/source/eventattacher.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'eventattacher/source/eventattacher.cxx') diff --git a/eventattacher/source/eventattacher.cxx b/eventattacher/source/eventattacher.cxx index 2224d33424ae..522940eb30ae 100644 --- a/eventattacher/source/eventattacher.cxx +++ b/eventattacher/source/eventattacher.cxx @@ -25,13 +25,14 @@ #include #include #include -#include +#include #include #include #include // InvocationToAllListenerMapper #include +#include #include #include #include @@ -433,8 +434,7 @@ Reference< XTypeConverter > EventAttacherImpl::getConverter() throw( Exception ) Guard< Mutex > aGuard( m_aMutex ); if( !m_xConverter.is() ) { - Reference< XInterface > xIFace( m_xSMgr->createInstance( rtl::OUString("com.sun.star.script.Converter") ) ); - m_xConverter = Reference< XTypeConverter >( xIFace, UNO_QUERY ); + m_xConverter = Converter::create(comphelper::ComponentContext(m_xSMgr).getUNOContext()); } return m_xConverter; } -- cgit