From b09b5f8f7cfd2d7f3125dab93ebe996c160e1e0c Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Thu, 22 May 2014 23:19:05 +0200 Subject: Prefer cppu::UnoType::get() to ::getCppuType((T*)0) part19 Change-Id: Iab50c52a132c90389992ef68c2d31df95a193ab9 --- extensions/source/propctrlr/eformspropertyhandler.cxx | 2 +- extensions/source/propctrlr/formcontroller.cxx | 6 +++--- extensions/source/propctrlr/submissionhandler.cxx | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'extensions/source/propctrlr') diff --git a/extensions/source/propctrlr/eformspropertyhandler.cxx b/extensions/source/propctrlr/eformspropertyhandler.cxx index d052ea3a8f1d..97929ded6d83 100644 --- a/extensions/source/propctrlr/eformspropertyhandler.cxx +++ b/extensions/source/propctrlr/eformspropertyhandler.cxx @@ -304,7 +304,7 @@ namespace pcr if ( m_pHelper->isListEntrySink() ) { implAddPropertyDescription( aProperties, PROPERTY_LIST_BINDING, - ::getCppuType( static_cast< Reference< XListEntrySource > * >( NULL ) ) ); + cppu::UnoType::get() ); } } diff --git a/extensions/source/propctrlr/formcontroller.cxx b/extensions/source/propctrlr/formcontroller.cxx index fc2279c82d57..38b2c3c7f2bf 100644 --- a/extensions/source/propctrlr/formcontroller.cxx +++ b/extensions/source/propctrlr/formcontroller.cxx @@ -103,9 +103,9 @@ namespace pcr Sequence< Type > SAL_CALL FormController::getTypes( ) throw(RuntimeException, std::exception) { ::cppu::OTypeCollection aTypes( - ::getCppuType( static_cast< Reference< XPropertySet >* >(NULL) ), - ::getCppuType( static_cast< Reference< XMultiPropertySet >* >(NULL) ), - ::getCppuType( static_cast< Reference< XFastPropertySet >* >(NULL) ), + cppu::UnoType::get(), + cppu::UnoType::get(), + cppu::UnoType::get(), OPropertyBrowserController::getTypes()); return aTypes.getTypes(); } diff --git a/extensions/source/propctrlr/submissionhandler.cxx b/extensions/source/propctrlr/submissionhandler.cxx index 04f9c1627687..4603b451d8b0 100644 --- a/extensions/source/propctrlr/submissionhandler.cxx +++ b/extensions/source/propctrlr/submissionhandler.cxx @@ -268,7 +268,7 @@ namespace pcr ::std::vector< Property > aProperties; if ( m_pHelper.get() ) { - implAddPropertyDescription( aProperties, PROPERTY_SUBMISSION_ID, ::getCppuType( static_cast< Reference< submission::XSubmission > * >( NULL ) ) ); + implAddPropertyDescription( aProperties, PROPERTY_SUBMISSION_ID, cppu::UnoType::get() ); implAddPropertyDescription( aProperties, PROPERTY_XFORMS_BUTTONTYPE, ::cppu::UnoType::get() ); } if ( aProperties.empty() ) -- cgit