summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/webdav-neon
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2014-05-13 23:19:08 +0200
committerJulien Nabet <serval2412@yahoo.fr>2014-05-13 23:20:26 +0200
commit036a660a86c225992c7cab083073374c40b1f366 (patch)
tree6271d26cc317e682a471d6c4a787f47740af680b /ucb/source/ucp/webdav-neon
parente1f0d790832098a7f8b323ab04809b6b55ade3d9 (diff)
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part11
Change-Id: Ibe0a1006aba2b6cbd87c0bd6ca3acbf9ba7b0fbe
Diffstat (limited to 'ucb/source/ucp/webdav-neon')
-rw-r--r--ucb/source/ucp/webdav-neon/webdavcontentcaps.cxx15
1 files changed, 5 insertions, 10 deletions
diff --git a/ucb/source/ucp/webdav-neon/webdavcontentcaps.cxx b/ucb/source/ucp/webdav-neon/webdavcontentcaps.cxx
index 8d040ce38ae6..f052e06d5755 100644
--- a/ucb/source/ucp/webdav-neon/webdavcontentcaps.cxx
+++ b/ucb/source/ucp/webdav-neon/webdavcontentcaps.cxx
@@ -563,14 +563,12 @@ uno::Sequence< ucb::CommandInfo > Content::getCommands(
ucb::CommandInfo(
OUString( "insert" ),
-1,
- getCppuType( static_cast<
- ucb::InsertCommandArgument * >( 0 ) ) );
+ cppu::UnoType<ucb::InsertCommandArgument>::get() );
aCmdInfo[ 6 ] =
ucb::CommandInfo(
OUString( "open" ),
-1,
- getCppuType( static_cast<
- ucb::OpenCommandArgument2 * >( 0 ) ) );
+ cppu::UnoType<ucb::OpenCommandArgument2>::get() );
// New commands
@@ -580,20 +578,17 @@ uno::Sequence< ucb::CommandInfo > Content::getCommands(
ucb::CommandInfo(
OUString( "post" ),
-1,
- getCppuType( static_cast<
- ucb::PostCommandArgument2 * >( 0 ) ) );
+ cppu::UnoType<ucb::PostCommandArgument2>::get() );
aCmdInfo[ 8 ] =
ucb::CommandInfo(
OUString( "addProperty" ),
-1,
- getCppuType( static_cast<
- ucb::PropertyCommandArgument * >( 0 ) ) );
+ cppu::UnoType<ucb::PropertyCommandArgument>::get() );
aCmdInfo[ 9 ] =
ucb::CommandInfo(
OUString( "removeProperty" ),
-1,
- getCppuType( static_cast<
- rtl::OUString * >( 0 ) ) );
+ cppu::UnoType<rtl::OUString>::get() );
bool bFolder = false;