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 /ucb/source/ucp/tdoc | |
parent | e1f0d790832098a7f8b323ab04809b6b55ade3d9 (diff) |
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part11
Change-Id: Ibe0a1006aba2b6cbd87c0bd6ca3acbf9ba7b0fbe
Diffstat (limited to 'ucb/source/ucp/tdoc')
-rw-r--r-- | ucb/source/ucp/tdoc/tdoc_contentcaps.cxx | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/ucb/source/ucp/tdoc/tdoc_contentcaps.cxx b/ucb/source/ucp/tdoc/tdoc_contentcaps.cxx index 5e0cce07f5bd..f3a00c3fbf6c 100644 --- a/ucb/source/ucp/tdoc/tdoc_contentcaps.cxx +++ b/ucb/source/ucp/tdoc/tdoc_contentcaps.cxx @@ -212,8 +212,7 @@ uno::Sequence< beans::Property > Content::getProperties( beans::Property( OUString( "Storage" ), -1, - getCppuType( static_cast< - const uno::Reference< embed::XStorage > * >( 0 ) ), + cppu::UnoType<embed::XStorage>::get(), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY ) @@ -279,8 +278,7 @@ uno::Sequence< beans::Property > Content::getProperties( beans::Property( OUString( "DocumentModel" ), -1, - getCppuType( static_cast< - const uno::Reference< frame::XModel > * >( 0 ) ), + cppu::UnoType<frame::XModel>::get(), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY ) @@ -410,8 +408,7 @@ uno::Sequence< ucb::CommandInfo > Content::getCommands( ucb::CommandInfo( OUString( "open" ), -1, - getCppuType( - static_cast< ucb::OpenCommandArgument2 * >( 0 ) ) + cppu::UnoType<ucb::OpenCommandArgument2>::get() ) // New commands @@ -470,8 +467,7 @@ uno::Sequence< ucb::CommandInfo > Content::getCommands( ucb::CommandInfo( OUString( "open" ), -1, - getCppuType( - static_cast< ucb::OpenCommandArgument2 * >( 0 ) ) + cppu::UnoType<ucb::OpenCommandArgument2>::get() ) // New commands @@ -531,8 +527,7 @@ uno::Sequence< ucb::CommandInfo > Content::getCommands( ucb::CommandInfo( OUString( "open" ), -1, - getCppuType( - static_cast< ucb::OpenCommandArgument2 * >( 0 ) ) + cppu::UnoType<ucb::OpenCommandArgument2>::get() ), ucb::CommandInfo( OUString( "transfer" ), @@ -592,8 +587,7 @@ uno::Sequence< ucb::CommandInfo > Content::getCommands( ucb::CommandInfo( OUString( "open" ), -1, - getCppuType( - static_cast< ucb::OpenCommandArgument2 * >( 0 ) ) + cppu::UnoType<ucb::OpenCommandArgument2>::get() ), ucb::CommandInfo( OUString( "transfer" ), @@ -655,8 +649,7 @@ uno::Sequence< ucb::CommandInfo > Content::getCommands( ucb::CommandInfo( OUString( "open" ), -1, - getCppuType( - static_cast< ucb::OpenCommandArgument2 * >( 0 ) ) + cppu::UnoType<ucb::OpenCommandArgument2>::get() ) // New commands |