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/gio | |
parent | 2241dd8d83fa8a89502ad7985427c5c79d94ce21 (diff) |
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part9
Change-Id: I82ed4a4868cb22566706ca0f4b1321e0d45016cf
Diffstat (limited to 'ucb/source/ucp/gio')
-rw-r--r-- | ucb/source/ucp/gio/gio_content.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/ucb/source/ucp/gio/gio_content.cxx b/ucb/source/ucp/gio/gio_content.cxx index 62e44d33fcf9..adba80d8fae0 100644 --- a/ucb/source/ucp/gio/gio_content.cxx +++ b/ucb/source/ucp/gio/gio_content.cxx @@ -1116,7 +1116,7 @@ uno::Sequence< ucb::ContentInfo > Content::queryCreatableContentsInfo( props[0] = beans::Property( OUString("Title"), -1, - getCppuType( static_cast< OUString* >( 0 ) ), + cppu::UnoType<OUString>::get(), beans::PropertyAttribute::MAYBEVOID | beans::PropertyAttribute::BOUND ); // file @@ -1236,19 +1236,19 @@ uno::Sequence< beans::Property > Content::getProperties( -1, getCppuBooleanType(), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY ), beans::Property( OUString( "Title" ), - -1, getCppuType( static_cast< const OUString * >( 0 ) ), + -1, cppu::UnoType<OUString>::get(), beans::PropertyAttribute::BOUND ), beans::Property( OUString( "IsReadOnly" ), -1, getCppuBooleanType(), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY ), beans::Property( OUString( "DateCreated" ), - -1, getCppuType( static_cast< const util::DateTime * >( 0 ) ), + -1, cppu::UnoType<util::DateTime>::get(), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY ), beans::Property( OUString( "DateModified" ), - -1, getCppuType( static_cast< const util::DateTime * >( 0 ) ), + -1, cppu::UnoType<util::DateTime>::get(), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY ), beans::Property( OUString( "Size" ), - -1, getCppuType( static_cast< const sal_Int64 * >( 0 ) ), + -1, cppu::UnoType<sal_Int64>::get(), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY ), beans::Property( OUString( "IsVolume" ), -1, getCppuBooleanType(), @@ -1295,18 +1295,18 @@ uno::Sequence< ucb::CommandInfo > Content::getCommands( const uno::Reference< uc -1, getCppuBooleanType() ), ucb::CommandInfo ( OUString( "insert" ), - -1, getCppuType( static_cast<ucb::InsertCommandArgument * >( 0 ) ) ), + -1, cppu::UnoType<ucb::InsertCommandArgument>::get() ), ucb::CommandInfo ( OUString( "open" ), - -1, getCppuType( static_cast<ucb::OpenCommandArgument2 * >( 0 ) ) ), + -1, cppu::UnoType<ucb::OpenCommandArgument2>::get() ), // Folder Only, omitted if not a folder ucb::CommandInfo ( OUString( "transfer" ), - -1, getCppuType( static_cast<ucb::TransferInfo * >( 0 ) ) ), + -1, cppu::UnoType<ucb::TransferInfo>::get() ), ucb::CommandInfo ( OUString( "createNewContent" ), - -1, getCppuType( static_cast<ucb::ContentInfo * >( 0 ) ) ) + -1, cppu::UnoType<ucb::ContentInfo>::get() ) }; const int nProps = sizeof (aCommandInfoTable) / sizeof (aCommandInfoTable[0]); |