From ac76cc7e605b1bc9c0ff8e24d0b9995a8247074e Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Fri, 23 May 2014 22:11:27 +0200 Subject: Prefer cppu::UnoType::get() to ::getCppuType((T*)0) part20 Change-Id: If87cdfb2c605254f6d69baa4ca5aec09091caa68 --- stoc/source/servicemanager/servicemanager.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'stoc/source/servicemanager') diff --git a/stoc/source/servicemanager/servicemanager.cxx b/stoc/source/servicemanager/servicemanager.cxx index 80746280e0b2..a3aaee6f7eaf 100644 --- a/stoc/source/servicemanager/servicemanager.cxx +++ b/stoc/source/servicemanager/servicemanager.cxx @@ -185,7 +185,7 @@ Any ServiceEnumeration_Impl::nextElement() if( nIt == aFactories.getLength() ) throw NoSuchElementException(); - return Any( &aFactories.getConstArray()[nIt++], ::getCppuType( (const Reference *)0 ) ); + return Any( &aFactories.getConstArray()[nIt++], cppu::UnoType::get()); } @@ -282,7 +282,7 @@ Any ImplementationEnumeration_Impl::nextElement() if( aIt == aImplementationMap.end() ) throw NoSuchElementException(); - Any ret( &(*aIt), ::getCppuType( (const Reference *)0 ) ); + Any ret( &(*aIt), cppu::UnoType::get()); ++aIt; return ret; } @@ -350,7 +350,7 @@ void OServiceManager_Listener::disposing(const EventObject & rEvt ) { try { - x->remove( Any( &rEvt.Source, ::getCppuType( (const Reference *)0 ) ) ); + x->remove( Any( &rEvt.Source, cppu::UnoType::get()) ); } catch( const IllegalArgumentException & ) { @@ -1144,7 +1144,7 @@ Type OServiceManager::getElementType() throw(css::uno::RuntimeException, std::exception) { check_undisposed(); - return ::getCppuType( (const Reference< XInterface > *)0 ); + return cppu::UnoType::get(); } // XElementAccess -- cgit