diff options
Diffstat (limited to 'eventattacher/source')
-rw-r--r-- | eventattacher/source/eventattacher.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/eventattacher/source/eventattacher.cxx b/eventattacher/source/eventattacher.cxx index 58106d25998a..883b49fd5a4a 100644 --- a/eventattacher/source/eventattacher.cxx +++ b/eventattacher/source/eventattacher.cxx @@ -547,7 +547,7 @@ Any SAL_CALL FilterAllListenerImpl::approveFiring( const AllEventObject& Event ) } catch( const CannotConvertException& e ) { - throw InvocationTargetException( OUString(), Reference< XInterface >(), Any(&e, ::getCppuType( (CannotConvertException*)0)) ); + throw InvocationTargetException( OUString(), Reference< XInterface >(), Any(&e, cppu::UnoType<CannotConvertException>::get()) ); } } return aRet; @@ -592,7 +592,7 @@ Reference< XEventListener > EventAttacherImpl::attachListener return Reference<XEventListener>(); // Inspect Introspection - Any aObjAny( &xObject, ::getCppuType( (const Reference< XInterface > *)0) ); + Any aObjAny( &xObject, cppu::UnoType<XInterface>::get()); Reference< XIntrospectionAccess > xAccess = xIntrospection->inspect( aObjAny ); if( !xAccess.is() ) @@ -735,7 +735,7 @@ Sequence< Reference<XEventListener> > EventAttacherImpl::attachListeners( return Sequence< Reference<XEventListener> >(); // Inspect Introspection - Any aObjAny( &xObject, ::getCppuType(static_cast<const Reference<XInterface>*>(0)) ); + Any aObjAny( &xObject, cppu::UnoType<XInterface>::get() ); Reference<XIntrospectionAccess> xAccess = xIntrospection->inspect(aObjAny); if (!xAccess.is()) @@ -798,7 +798,7 @@ void EventAttacherImpl::removeListener throw IntrospectionException(); //Inspect Introspection - Any aObjAny( &xObject, ::getCppuType( (const Reference< XInterface > *)0) ); + Any aObjAny( &xObject, cppu::UnoType<XInterface>::get()); Reference< XIntrospectionAccess > xAccess = xIntrospection->inspect( aObjAny ); if( !xAccess.is() ) throw IntrospectionException(); |