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/corereflection/crefl.cxx | |
parent | 3191d7d1302dbde2445b9f300b3eb853120ede65 (diff) |
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part20
Change-Id: If87cdfb2c605254f6d69baa4ca5aec09091caa68
Diffstat (limited to 'stoc/source/corereflection/crefl.cxx')
-rw-r--r-- | stoc/source/corereflection/crefl.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/stoc/source/corereflection/crefl.cxx b/stoc/source/corereflection/crefl.cxx index dcf74a4a3f8b..66ad8c703fcf 100644 --- a/stoc/source/corereflection/crefl.cxx +++ b/stoc/source/corereflection/crefl.cxx @@ -108,9 +108,9 @@ Sequence< Type > IdlReflectionServiceImpl::getTypes() if (! s_pTypes) { static OTypeCollection s_aTypes( - ::getCppuType( (const Reference< XIdlReflection > *)0 ), - ::getCppuType( (const Reference< XHierarchicalNameAccess > *)0 ), - ::getCppuType( (const Reference< XServiceInfo > *)0 ), + cppu::UnoType<XIdlReflection>::get(), + cppu::UnoType<XHierarchicalNameAccess>::get(), + cppu::UnoType<XServiceInfo>::get(), OComponentHelper::getTypes() ); s_pTypes = &s_aTypes; } @@ -263,7 +263,7 @@ Any IdlReflectionServiceImpl::getByHierarchicalName( const OUString & rName ) { // type retrieved from tdmgr OSL_ASSERT( (*(Reference< XInterface > *)aRet.getValue())->queryInterface( - ::getCppuType( (const Reference< XTypeDescription > *)0 ) ).hasValue() ); + cppu::UnoType<XTypeDescription>::get()).hasValue() ); css::uno::Reference< css::reflection::XConstantTypeDescription > ctd; @@ -288,7 +288,7 @@ Any IdlReflectionServiceImpl::getByHierarchicalName( const OUString & rName ) if (pTD) { Reference< XIdlClass > xIdlClass( constructClass( pTD ) ); - aRet.setValue( &xIdlClass, ::getCppuType( (const Reference< XIdlClass > *)0 ) ); + aRet.setValue( &xIdlClass, cppu::UnoType<XIdlClass>::get()); typelib_typedescription_release( pTD ); } } |