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 /ucb | |
parent | 3191d7d1302dbde2445b9f300b3eb853120ede65 (diff) |
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part20
Change-Id: If87cdfb2c605254f6d69baa4ca5aec09091caa68
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/core/ucbprops.cxx | 3 | ||||
-rw-r--r-- | ucb/source/core/ucbstore.cxx | 2 | ||||
-rw-r--r-- | ucb/source/sorter/sortresult.cxx | 2 |
3 files changed, 3 insertions, 4 deletions
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<com::sun::star::ucb::RuleSet>::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<XPersistentPropertySet>::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<OUString>::get(); maProps[0].Attributes = -1; maProps[1].Name = "IsRowCountFinal"; |