diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2014-05-13 23:19:08 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2014-05-13 23:20:26 +0200 |
commit | 036a660a86c225992c7cab083073374c40b1f366 (patch) | |
tree | 6271d26cc317e682a471d6c4a787f47740af680b /xmlhelp/source | |
parent | e1f0d790832098a7f8b323ab04809b6b55ade3d9 (diff) |
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part11
Change-Id: Ibe0a1006aba2b6cbd87c0bd6ca3acbf9ba7b0fbe
Diffstat (limited to 'xmlhelp/source')
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/contentcaps.cxx | 2 | ||||
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/provider.cxx | 10 |
2 files changed, 6 insertions, 6 deletions
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<star::ucb::OpenCommandArgument2>::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<lang::XTypeProvider>::get(), + cppu::UnoType<lang::XServiceInfo>::get(), + cppu::UnoType<ucb::XContentProvider>::get(), + cppu::UnoType<lang::XComponent>::get(), + cppu::UnoType<container::XContainerListener>::get() ); pCollection = &collection; } |