summaryrefslogtreecommitdiff
path: root/comphelper
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 /comphelper
parent4381f3dd5ae9e042840a16f69d07267208160420 (diff)
fdo#46808, Adapt script::Converter service code to new style
Change-Id: I19b3ba7c978e02ce865360f0411007525012149c
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/eventattachermgr/eventattachermgr.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/comphelper/source/eventattachermgr/eventattachermgr.cxx b/comphelper/source/eventattachermgr/eventattachermgr.cxx
index 3ade1e7428e5..644d2d9a54ef 100644
--- a/comphelper/source/eventattachermgr/eventattachermgr.cxx
+++ b/comphelper/source/eventattachermgr/eventattachermgr.cxx
@@ -34,7 +34,7 @@
#include <com/sun/star/reflection/XIdlClass.hpp>
#include <com/sun/star/reflection/XIdlReflection.hpp>
#include <com/sun/star/reflection/XIdlMethod.hpp>
-#include <com/sun/star/script/XTypeConverter.hpp>
+#include <com/sun/star/script/Converter.hpp>
#include <com/sun/star/script/XEngineListener.hpp>
#include <com/sun/star/script/XEventAttacher2.hpp>
#include <com/sun/star/script/XEventAttacherManager.hpp>
@@ -43,6 +43,7 @@
#include <cppuhelper/interfacecontainer.hxx>
#include <cppuhelper/implbase1.hxx>
#include <cppuhelper/implbase2.hxx>
+#include <comphelper/componentcontext.hxx>
#include <deque>
#include <algorithm>
@@ -381,11 +382,7 @@ ImplEventAttacherManager::ImplEventAttacherManager( const Reference< XIntrospect
{
xAttacher = Reference< XEventAttacher2 >::query( xIFace );
}
- xIFace = rSMgr->createInstance( OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.script.Converter" )) );
- if ( xIFace.is() )
- {
- xConverter = Reference< XTypeConverter >::query( xIFace );
- }
+ xConverter = Converter::create(comphelper::ComponentContext(rSMgr).getUNOContext());
}
Reference< XInitialization > xInit( xAttacher, UNO_QUERY );