From b09b5f8f7cfd2d7f3125dab93ebe996c160e1e0c Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Thu, 22 May 2014 23:19:05 +0200 Subject: Prefer cppu::UnoType::get() to ::getCppuType((T*)0) part19 Change-Id: Iab50c52a132c90389992ef68c2d31df95a193ab9 --- eventattacher/source/eventattacher.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'eventattacher') 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::get()) ); } } return aRet; @@ -592,7 +592,7 @@ Reference< XEventListener > EventAttacherImpl::attachListener return Reference(); // Inspect Introspection - Any aObjAny( &xObject, ::getCppuType( (const Reference< XInterface > *)0) ); + Any aObjAny( &xObject, cppu::UnoType::get()); Reference< XIntrospectionAccess > xAccess = xIntrospection->inspect( aObjAny ); if( !xAccess.is() ) @@ -735,7 +735,7 @@ Sequence< Reference > EventAttacherImpl::attachListeners( return Sequence< Reference >(); // Inspect Introspection - Any aObjAny( &xObject, ::getCppuType(static_cast*>(0)) ); + Any aObjAny( &xObject, cppu::UnoType::get() ); Reference 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::get()); Reference< XIntrospectionAccess > xAccess = xIntrospection->inspect( aObjAny ); if( !xAccess.is() ) throw IntrospectionException(); -- cgit