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/proxy_factory/proxyfac.cxx | |
parent | 3191d7d1302dbde2445b9f300b3eb853120ede65 (diff) |
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part20
Change-Id: If87cdfb2c605254f6d69baa4ca5aec09091caa68
Diffstat (limited to 'stoc/source/proxy_factory/proxyfac.cxx')
-rw-r--r-- | stoc/source/proxy_factory/proxyfac.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/stoc/source/proxy_factory/proxyfac.cxx b/stoc/source/proxy_factory/proxyfac.cxx index 0ddc2a00391d..14f0df8d0c4f 100644 --- a/stoc/source/proxy_factory/proxyfac.cxx +++ b/stoc/source/proxy_factory/proxyfac.cxx @@ -106,8 +106,7 @@ UnoInterfaceReference FactoryImpl::binuno_queryInterface( typelib_TypeDescription * pTXInterfaceDescr = 0; TYPELIB_DANGER_GET( &pTXInterfaceDescr, - ::getCppuType( reinterpret_cast< Reference< XInterface > - const * >(0) ).getTypeLibType() ); + cppu::UnoType<XInterface>::get().getTypeLibType() ); typelib_TypeDescription * pQITD = 0; typelib_typedescriptionreference_getDescription( &pQITD, reinterpret_cast< typelib_InterfaceTypeDescription * >( @@ -149,9 +148,7 @@ UnoInterfaceReference FactoryImpl::binuno_queryInterface( { // exception occurred: OSL_ENSURE( - typelib_typedescriptionreference_isAssignableFrom( - ::getCppuType( reinterpret_cast< - RuntimeException const * >(0) ).getTypeLibType(), + typelib_typedescriptionreference_isAssignableFrom( cppu::UnoType<RuntimeException>::get() ).getTypeLibType(), exc->pType ), "### RuntimeException expected!" ); Any cpp_exc; |