diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2014-05-22 23:19:05 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2014-05-22 23:21:18 +0200 |
commit | b09b5f8f7cfd2d7f3125dab93ebe996c160e1e0c (patch) | |
tree | dacb87512726af1941d0c6b072d0b3626335cc4c /eventattacher | |
parent | 87c1aa16a95dcff9247ae12a4bb5ea2d866b1772 (diff) |
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part19
Change-Id: Iab50c52a132c90389992ef68c2d31df95a193ab9
Diffstat (limited to 'eventattacher')
-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(); |