diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2014-05-23 22:11:27 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2014-05-23 22:11:52 +0200 |
commit | ac76cc7e605b1bc9c0ff8e24d0b9995a8247074e (patch) | |
tree | 797df8cc9387fa70a0c09e574f49714ce4dc6710 /stoc/source/servicemanager | |
parent | 3191d7d1302dbde2445b9f300b3eb853120ede65 (diff) |
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part20
Change-Id: If87cdfb2c605254f6d69baa4ca5aec09091caa68
Diffstat (limited to 'stoc/source/servicemanager')
-rw-r--r-- | stoc/source/servicemanager/servicemanager.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
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<XInterface > *)0 ) ); + return Any( &aFactories.getConstArray()[nIt++], cppu::UnoType<XInterface>::get()); } @@ -282,7 +282,7 @@ Any ImplementationEnumeration_Impl::nextElement() if( aIt == aImplementationMap.end() ) throw NoSuchElementException(); - Any ret( &(*aIt), ::getCppuType( (const Reference<XInterface > *)0 ) ); + Any ret( &(*aIt), cppu::UnoType<XInterface>::get()); ++aIt; return ret; } @@ -350,7 +350,7 @@ void OServiceManager_Listener::disposing(const EventObject & rEvt ) { try { - x->remove( Any( &rEvt.Source, ::getCppuType( (const Reference<XInterface > *)0 ) ) ); + x->remove( Any( &rEvt.Source, cppu::UnoType<XInterface>::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<XInterface>::get(); } // XElementAccess |