diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2014-05-10 23:51:21 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2014-05-10 23:54:07 +0200 |
commit | fa51b556800f332b311786770b3d6e57b65f615c (patch) | |
tree | 4218dbf7025f8d88550d941c2394c8c442324187 /ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx | |
parent | 2241dd8d83fa8a89502ad7985427c5c79d94ce21 (diff) |
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part9
Change-Id: I82ed4a4868cb22566706ca0f4b1321e0d45016cf
Diffstat (limited to 'ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx')
-rw-r--r-- | ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx b/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx index b5365842b635..67bdb2d1cc1d 100644 --- a/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx +++ b/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx @@ -104,7 +104,7 @@ uno::Sequence< beans::Property > HierarchyContent::getProperties( beans::Property( OUString( "ContentType" ), -1, - getCppuType( static_cast< const OUString * >( 0 ) ), + cppu::UnoType<OUString>::get(), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY ), @@ -125,7 +125,7 @@ uno::Sequence< beans::Property > HierarchyContent::getProperties( beans::Property( OUString( "Title" ), -1, - getCppuType( static_cast< const OUString * >( 0 ) ), + cppu::UnoType<OUString>::get(), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY ), @@ -135,7 +135,7 @@ uno::Sequence< beans::Property > HierarchyContent::getProperties( beans::Property( OUString( "TargetURL" ), -1, - getCppuType( static_cast< const OUString * >( 0 ) ), + cppu::UnoType<OUString>::get(), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY ), @@ -163,7 +163,7 @@ uno::Sequence< beans::Property > HierarchyContent::getProperties( beans::Property( OUString( "ContentType" ), -1, - getCppuType( static_cast< const OUString * >( 0 ) ), + cppu::UnoType<OUString>::get(), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY ), @@ -184,7 +184,7 @@ uno::Sequence< beans::Property > HierarchyContent::getProperties( beans::Property( OUString( "Title" ), -1, - getCppuType( static_cast< const OUString * >( 0 ) ), + cppu::UnoType<OUString>::get(), beans::PropertyAttribute::BOUND ), @@ -193,7 +193,7 @@ uno::Sequence< beans::Property > HierarchyContent::getProperties( beans::Property( OUString( "TargetURL" ), -1, - getCppuType( static_cast< const OUString * >( 0 ) ), + cppu::UnoType<OUString>::get(), beans::PropertyAttribute::BOUND ), beans::Property( @@ -229,7 +229,7 @@ uno::Sequence< beans::Property > HierarchyContent::getProperties( beans::Property( OUString( "ContentType" ), -1, - getCppuType( static_cast< const OUString * >( 0 ) ), + cppu::UnoType<OUString>::get(), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY ), @@ -250,7 +250,7 @@ uno::Sequence< beans::Property > HierarchyContent::getProperties( beans::Property( OUString( "Title" ), -1, - getCppuType( static_cast< const OUString * >( 0 ) ), + cppu::UnoType<OUString>::get(), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY ), @@ -281,7 +281,7 @@ uno::Sequence< beans::Property > HierarchyContent::getProperties( beans::Property( OUString( "ContentType" ), -1, - getCppuType( static_cast< const OUString * >( 0 ) ), + cppu::UnoType<OUString>::get(), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY ), @@ -302,7 +302,7 @@ uno::Sequence< beans::Property > HierarchyContent::getProperties( beans::Property( OUString( "Title" ), -1, - getCppuType( static_cast< const OUString * >( 0 ) ), + cppu::UnoType<OUString>::get(), beans::PropertyAttribute::BOUND ), @@ -342,7 +342,7 @@ uno::Sequence< beans::Property > HierarchyContent::getProperties( beans::Property( OUString( "ContentType" ), -1, - getCppuType( static_cast< const OUString * >( 0 ) ), + cppu::UnoType<OUString>::get(), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY ), @@ -363,7 +363,7 @@ uno::Sequence< beans::Property > HierarchyContent::getProperties( beans::Property( OUString( "Title" ), -1, - getCppuType( static_cast< const OUString * >( 0 ) ), + cppu::UnoType<OUString>::get(), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY ), @@ -596,12 +596,12 @@ uno::Sequence< ucb::CommandInfo > HierarchyContent::getCommands( ucb::CommandInfo( OUString( "transfer" ), -1, - getCppuType( static_cast< ucb::TransferInfo * >( 0 ) ) + cppu::UnoType<ucb::TransferInfo>::get() ), ucb::CommandInfo( OUString( "createNewContent" ), -1, - getCppuType( static_cast< ucb::ContentInfo * >( 0 ) ) + cppu::UnoType<ucb::ContentInfo>::get() ) // New commands @@ -705,12 +705,12 @@ uno::Sequence< ucb::CommandInfo > HierarchyContent::getCommands( ucb::CommandInfo( OUString( "transfer" ), -1, - getCppuType( static_cast< ucb::TransferInfo * >( 0 ) ) + cppu::UnoType<ucb::TransferInfo>::get() ), ucb::CommandInfo( OUString( "createNewContent" ), -1, - getCppuType( static_cast< ucb::ContentInfo * >( 0 ) ) + cppu::UnoType<ucb::ContentInfo>::get() ) // New commands |