diff options
Diffstat (limited to 'eventattacher')
-rw-r--r-- | eventattacher/Library_evtatt.mk | 1 | ||||
-rw-r--r-- | eventattacher/prj/build.lst | 2 | ||||
-rw-r--r-- | eventattacher/source/eventattacher.cxx | 6 |
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; } |