From 036a660a86c225992c7cab083073374c40b1f366 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Tue, 13 May 2014 23:19:08 +0200 Subject: Prefer cppu::UnoType::get() to ::getCppuType((T*)0) part11 Change-Id: Ibe0a1006aba2b6cbd87c0bd6ca3acbf9ba7b0fbe --- xmlhelp/source/cxxhelp/provider/contentcaps.cxx | 2 +- xmlhelp/source/cxxhelp/provider/provider.cxx | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'xmlhelp') diff --git a/xmlhelp/source/cxxhelp/provider/contentcaps.cxx b/xmlhelp/source/cxxhelp/provider/contentcaps.cxx index 38a8bbbf9c6c..82a8f152587a 100644 --- a/xmlhelp/source/cxxhelp/provider/contentcaps.cxx +++ b/xmlhelp/source/cxxhelp/provider/contentcaps.cxx @@ -188,7 +188,7 @@ uno::Sequence< star::ucb::CommandInfo > Content::getCommands( star::ucb::CommandInfo( "open", -1, - getCppuType( static_cast< star::ucb::OpenCommandArgument2 * >( 0 ) ) + cppu::UnoType::get() ) }; diff --git a/xmlhelp/source/cxxhelp/provider/provider.cxx b/xmlhelp/source/cxxhelp/provider/provider.cxx index 7191890c345d..88937f553dd8 100644 --- a/xmlhelp/source/cxxhelp/provider/provider.cxx +++ b/xmlhelp/source/cxxhelp/provider/provider.cxx @@ -105,11 +105,11 @@ css::uno::Sequence< css::uno::Type > SAL_CALL ContentProvider::getTypes() if ( !pCollection ) { static cppu::OTypeCollection collection( - getCppuType( static_cast< css::uno::Reference< lang::XTypeProvider > *>(0)), - getCppuType( static_cast< css::uno::Reference< lang::XServiceInfo > *>(0)), - getCppuType( static_cast< css::uno::Reference< ucb::XContentProvider > *>(0)), - getCppuType( static_cast< css::uno::Reference< lang::XComponent > *>(0)), - getCppuType( static_cast< css::uno::Reference< container::XContainerListener > *>(0)) + cppu::UnoType::get(), + cppu::UnoType::get(), + cppu::UnoType::get(), + cppu::UnoType::get(), + cppu::UnoType::get() ); pCollection = &collection; } -- cgit