Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part19

Change-Id: Iab50c52a132c90389992ef68c2d31df95a193ab9
This commit is contained in:
Julien Nabet
2014-05-22 23:19:05 +02:00
parent 87c1aa16a9
commit b09b5f8f7c
114 changed files with 490 additions and 505 deletions

View File

@@ -82,7 +82,7 @@ namespace dbaccess
Any SAL_CALL View::queryInterface( const Type & _rType ) throw(RuntimeException, std::exception)
{
if(_rType == getCppuType( (Reference<XAlterView>*)0) && !m_xViewAccess.is() )
if(_rType == cppu::UnoType<XAlterView>::get()&& !m_xViewAccess.is() )
return Any();
Any aReturn = View_Base::queryInterface( _rType );
if ( !aReturn.hasValue() )
@@ -92,7 +92,7 @@ namespace dbaccess
Sequence< Type > SAL_CALL View::getTypes( ) throw(RuntimeException, std::exception)
{
Type aAlterType = getCppuType( (Reference<XAlterView>*)0);
Type aAlterType = cppu::UnoType<XAlterView>::get();
Sequence< Type > aTypes( ::comphelper::concatSequences(View_Base::getTypes(),View_IBASE::getTypes()) );
::std::vector<Type> aOwnTypes;