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 --- ucb/source/core/ucbprops.cxx | 3 +-- ucb/source/core/ucbstore.cxx | 2 +- ucb/source/sorter/sortresult.cxx | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) (limited to 'ucb/source') diff --git a/ucb/source/core/ucbprops.cxx b/ucb/source/core/ucbprops.cxx index 2693fb6b7f75..f21154d4663b 100644 --- a/ucb/source/core/ucbprops.cxx +++ b/ucb/source/core/ucbprops.cxx @@ -140,8 +140,7 @@ static const com::sun::star::uno::Type& Sequence_RecipientInfo_getCppuType() static const com::sun::star::uno::Type& RuleSet_getCppuType() { - return getCppuType( - static_cast< com::sun::star::ucb::RuleSet * >( 0 ) ); + return cppu::UnoType::get(); } static const com::sun::star::uno::Type& Sequence_SendInfo_getCppuType() diff --git a/ucb/source/core/ucbstore.cxx b/ucb/source/core/ucbstore.cxx index a4fad5a44c20..421b364e1ac1 100644 --- a/ucb/source/core/ucbstore.cxx +++ b/ucb/source/core/ucbstore.cxx @@ -500,7 +500,7 @@ void SAL_CALL PropertySetRegistry::removePropertySet( const OUString& key ) com::sun::star::uno::Type SAL_CALL PropertySetRegistry::getElementType() throw( RuntimeException, std::exception ) { - return getCppuType( ( Reference< XPersistentPropertySet > * ) 0 ); + return cppu::UnoType::get(); } diff --git a/ucb/source/sorter/sortresult.cxx b/ucb/source/sorter/sortresult.cxx index ac4668524517..eb35bb6ffbca 100644 --- a/ucb/source/sorter/sortresult.cxx +++ b/ucb/source/sorter/sortresult.cxx @@ -1956,7 +1956,7 @@ SRSPropertySetInfo::SRSPropertySetInfo() { maProps[0].Name = "RowCount"; maProps[0].Handle = -1; - maProps[0].Type = ::getCppuType( (const OUString*) NULL ); + maProps[0].Type = cppu::UnoType::get(); maProps[0].Attributes = -1; maProps[1].Name = "IsRowCountFinal"; -- cgit