summaryrefslogtreecommitdiff
path: root/xmlhelp
diff options
context:
space:
mode:
Diffstat (limited to 'xmlhelp')
-rw-r--r--xmlhelp/source/cxxhelp/provider/contentcaps.cxx2
-rw-r--r--xmlhelp/source/cxxhelp/provider/provider.cxx10
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;
}