summaryrefslogtreecommitdiff
path: root/eventattacher
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-08-21 08:07:58 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-08-27 15:40:07 +0200
commit8638f1e72a3fe830c0e8dcc1bd847d4fb9e599ee (patch)
treed398e9c43b4dd1570145210690a75762d81f4dc4 /eventattacher
parent4381f3dd5ae9e042840a16f69d07267208160420 (diff)
fdo#46808, Adapt script::Converter service code to new style
Change-Id: I19b3ba7c978e02ce865360f0411007525012149c
Diffstat (limited to 'eventattacher')
-rw-r--r--eventattacher/Library_evtatt.mk1
-rw-r--r--eventattacher/prj/build.lst2
-rw-r--r--eventattacher/source/eventattacher.cxx6
3 files changed, 5 insertions, 4 deletions
diff --git a/eventattacher/Library_evtatt.mk b/eventattacher/Library_evtatt.mk
index bab924313dd9..02363a0e81b2 100644
--- a/eventattacher/Library_evtatt.mk
+++ b/eventattacher/Library_evtatt.mk
@@ -33,6 +33,7 @@ $(eval $(call gb_Library_Library,evtatt))
$(eval $(call gb_Library_set_componentfile,evtatt,eventattacher/source/evtatt))
$(eval $(call gb_Library_use_libraries,evtatt,\
+ comphelper \
cppuhelper \
cppu \
sal \
diff --git a/eventattacher/prj/build.lst b/eventattacher/prj/build.lst
index 6e5faf8a8fa5..1f634bf3868b 100644
--- a/eventattacher/prj/build.lst
+++ b/eventattacher/prj/build.lst
@@ -1,2 +1,2 @@
-ea eventattacher : offapi cppuhelper LIBXSLT:libxslt NULL
+ea eventattacher : offapi comphelper cppuhelper LIBXSLT:libxslt NULL
ea eventattacher\prj nmake - all ea_prj NULL
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 <com/sun/star/beans/XIntrospection.hpp>
#include <com/sun/star/beans/MethodConcept.hpp>
#include <com/sun/star/script/XEventAttacher2.hpp>
-#include <com/sun/star/script/XTypeConverter.hpp>
+#include <com/sun/star/script/Converter.hpp>
#include <com/sun/star/script/XAllListener.hpp>
#include <com/sun/star/script/XInvocationAdapterFactory.hpp>
#include <com/sun/star/reflection/XIdlReflection.hpp>
// InvocationToAllListenerMapper
#include <com/sun/star/script/XInvocation.hpp>
+#include <comphelper/componentcontext.hxx>
#include <cppuhelper/weak.hxx>
#include <cppuhelper/factory.hxx>
#include <cppuhelper/implbase1.hxx>
@@ -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;
}