diff options
Diffstat (limited to 'ucb/source/ucp/file')
-rw-r--r-- | ucb/source/ucp/file/bc.cxx | 10 | ||||
-rw-r--r-- | ucb/source/ucp/file/filrset.cxx | 4 | ||||
-rw-r--r-- | ucb/source/ucp/file/prov.cxx | 6 | ||||
-rw-r--r-- | ucb/source/ucp/file/shell.cxx | 34 |
4 files changed, 27 insertions, 27 deletions
diff --git a/ucb/source/ucp/file/bc.cxx b/ucb/source/ucp/file/bc.cxx index e444d31db0b5..3b59a3141fd1 100644 --- a/ucb/source/ucp/file/bc.cxx +++ b/ucb/source/ucp/file/bc.cxx @@ -398,7 +398,7 @@ BaseContent::execute( const Command& aCommand, seq[0] = beans::Property( OUString("CasePreservingURL"), -1, - getCppuType( static_cast< sal_Bool* >(0) ), + cppu::UnoType<sal_Bool>::get(), 0 ); Reference< sdbc::XRow > xRow = getPropertyValues( CommandId,seq ); OUString CasePreservingURL = xRow->getString(1); @@ -507,7 +507,7 @@ BaseContent::getContentType() Sequence< beans::Property > seq(1); seq[0] = beans::Property( OUString("IsDocument"), -1, - getCppuType( static_cast< sal_Bool* >(0) ), + cppu::UnoType<sal_Bool>::get(), 0 ); Reference< sdbc::XRow > xRow = getPropertyValues( -1,seq ); bool IsDocument = xRow->getBoolean( 1 ); @@ -644,7 +644,7 @@ BaseContent::createNewContent( Sequence< beans::Property > seq(1); seq[0] = beans::Property( OUString("IsDocument"), -1, - getCppuType( static_cast< sal_Bool* >(0) ), + cppu::UnoType<sal_Bool>::get(), 0 ); Reference< sdbc::XRow > xRow = getPropertyValues( -1,seq ); IsDocument = xRow->getBoolean( 1 ); @@ -1101,7 +1101,7 @@ BaseContent::transfer( sal_Int32 nMyCommandIdentifier, Sequence< beans::Property > seq(1); seq[0] = beans::Property( OUString("IsDocument"), -1, - getCppuType( static_cast< sal_Bool* >(0) ), + cppu::UnoType<sal_Bool>::get(), 0 ); Reference< sdbc::XRow > xRow = getPropertyValues( nMyCommandIdentifier,seq ); bool IsDocument = xRow->getBoolean( 1 ); @@ -1170,7 +1170,7 @@ void SAL_CALL BaseContent::insert( sal_Int32 nMyCommandIdentifier, Sequence< beans::Property > seq(1); seq[0] = beans::Property( OUString("IsDocument"), -1, - getCppuType( static_cast< sal_Bool* >(0) ), + cppu::UnoType<sal_Bool>::get(), 0 ); Reference< sdbc::XRow > xRow = getPropertyValues( -1,seq ); diff --git a/ucb/source/ucp/file/filrset.cxx b/ucb/source/ucp/file/filrset.cxx index cdc668231a41..f499af010190 100644 --- a/ucb/source/ucp/file/filrset.cxx +++ b/ucb/source/ucp/file/filrset.cxx @@ -743,12 +743,12 @@ XResultSet_impl::getPropertySetInfo() uno::Sequence< beans::Property > seq(2); seq[0].Name = "RowCount"; seq[0].Handle = -1; - seq[0].Type = getCppuType( static_cast< sal_Int32* >(0) ); + seq[0].Type = cppu::UnoType<sal_Int32>::get(); seq[0].Attributes = beans::PropertyAttribute::READONLY; seq[0].Name = "IsRowCountFinal"; seq[0].Handle = -1; - seq[0].Type = getCppuType( static_cast< sal_Bool* >(0) ); + seq[0].Type = cppu::UnoType<sal_Bool>::get(); seq[0].Attributes = beans::PropertyAttribute::READONLY; XPropertySetInfo_impl* p = new XPropertySetInfo_impl( m_pMyShell, diff --git a/ucb/source/ucp/file/prov.cxx b/ucb/source/ucp/file/prov.cxx index 223d4c8ad720..ac5b6e4336aa 100644 --- a/ucb/source/ucp/file/prov.cxx +++ b/ucb/source/ucp/file/prov.cxx @@ -336,17 +336,17 @@ XPropertySetInfoImpl2::XPropertySetInfoImpl2() { m_seq[0] = Property( OUString("HostName"), -1, - getCppuType( static_cast< OUString* >( 0 ) ), + cppu::UnoType<OUString>::get(), PropertyAttribute::READONLY ); m_seq[1] = Property( OUString("HomeDirectory"), -1, - getCppuType( static_cast< OUString* >( 0 ) ), + cppu::UnoType<OUString>::get(), PropertyAttribute::READONLY ); m_seq[2] = Property( OUString("FileSystemNotation"), -1, - getCppuType( static_cast< sal_Int32* >( 0 ) ), + cppu::UnoType<sal_Int32>::get(), PropertyAttribute::READONLY ); } diff --git a/ucb/source/ucp/file/shell.cxx b/ucb/source/ucp/file/shell.cxx index e9d311182560..c5ac2ef43ec1 100644 --- a/ucb/source/ucp/file/shell.cxx +++ b/ucb/source/ucp/file/shell.cxx @@ -177,7 +177,7 @@ shell::shell( const uno::Reference< uno::XComponentContext >& rxContext, m_aDefaultProperties.insert( MyProperty( true, Title, -1 , - getCppuType( static_cast< OUString* >( 0 ) ), + cppu::UnoType<OUString>::get(), uno::Any(), beans::PropertyState_DEFAULT_VALUE, beans::PropertyAttribute::MAYBEVOID @@ -188,7 +188,7 @@ shell::shell( const uno::Reference< uno::XComponentContext >& rxContext, MyProperty( true, CasePreservingURL, -1 , - getCppuType( static_cast< OUString* >( 0 ) ), + cppu::UnoType<OUString>::get(), uno::Any(), beans::PropertyState_DEFAULT_VALUE, beans::PropertyAttribute::MAYBEVOID @@ -200,7 +200,7 @@ shell::shell( const uno::Reference< uno::XComponentContext >& rxContext, m_aDefaultProperties.insert( MyProperty( true, IsFolder, -1 , - getCppuType( static_cast< sal_Bool* >( 0 ) ), + cppu::UnoType<sal_Bool>::get(), uno::Any(), beans::PropertyState_DEFAULT_VALUE, beans::PropertyAttribute::MAYBEVOID @@ -212,7 +212,7 @@ shell::shell( const uno::Reference< uno::XComponentContext >& rxContext, m_aDefaultProperties.insert( MyProperty( true, IsDocument, -1 , - getCppuType( static_cast< sal_Bool* >( 0 ) ), + cppu::UnoType<sal_Bool>::get(), uno::Any(), beans::PropertyState_DEFAULT_VALUE, beans::PropertyAttribute::MAYBEVOID @@ -223,7 +223,7 @@ shell::shell( const uno::Reference< uno::XComponentContext >& rxContext, m_aDefaultProperties.insert( MyProperty( true, IsVolume, -1 , - getCppuType( static_cast< sal_Bool* >( 0 ) ), + cppu::UnoType<sal_Bool>::get(), uno::Any(), beans::PropertyState_DEFAULT_VALUE, beans::PropertyAttribute::MAYBEVOID @@ -235,7 +235,7 @@ shell::shell( const uno::Reference< uno::XComponentContext >& rxContext, m_aDefaultProperties.insert( MyProperty( true, IsRemoveable, -1 , - getCppuType( static_cast< sal_Bool* >( 0 ) ), + cppu::UnoType<sal_Bool>::get(), uno::Any(), beans::PropertyState_DEFAULT_VALUE, beans::PropertyAttribute::MAYBEVOID @@ -246,7 +246,7 @@ shell::shell( const uno::Reference< uno::XComponentContext >& rxContext, m_aDefaultProperties.insert( MyProperty( true, IsRemote, -1 , - getCppuType( static_cast< sal_Bool* >( 0 ) ), + cppu::UnoType<sal_Bool>::get(), uno::Any(), beans::PropertyState_DEFAULT_VALUE, beans::PropertyAttribute::MAYBEVOID @@ -257,7 +257,7 @@ shell::shell( const uno::Reference< uno::XComponentContext >& rxContext, m_aDefaultProperties.insert( MyProperty( true, IsCompactDisc, -1 , - getCppuType( static_cast< sal_Bool* >( 0 ) ), + cppu::UnoType<sal_Bool>::get(), uno::Any(), beans::PropertyState_DEFAULT_VALUE, beans::PropertyAttribute::MAYBEVOID @@ -268,7 +268,7 @@ shell::shell( const uno::Reference< uno::XComponentContext >& rxContext, m_aDefaultProperties.insert( MyProperty( true, IsFloppy, -1 , - getCppuType( static_cast< sal_Bool* >( 0 ) ), + cppu::UnoType<sal_Bool>::get(), uno::Any(), beans::PropertyState_DEFAULT_VALUE, beans::PropertyAttribute::MAYBEVOID @@ -281,7 +281,7 @@ shell::shell( const uno::Reference< uno::XComponentContext >& rxContext, true, IsHidden, -1 , - getCppuType( static_cast< sal_Bool* >( 0 ) ), + cppu::UnoType<sal_Bool>::get(), uno::Any(), beans::PropertyState_DEFAULT_VALUE, beans::PropertyAttribute::MAYBEVOID @@ -299,7 +299,7 @@ shell::shell( const uno::Reference< uno::XComponentContext >& rxContext, m_aDefaultProperties.insert( MyProperty( false, ContentType, -1 , - getCppuType( static_cast< OUString* >( 0 ) ), + cppu::UnoType<OUString>::get(), aAny, beans::PropertyState_DEFAULT_VALUE, beans::PropertyAttribute::MAYBEVOID @@ -311,7 +311,7 @@ shell::shell( const uno::Reference< uno::XComponentContext >& rxContext, m_aDefaultProperties.insert( MyProperty( true, DateModified, -1 , - getCppuType( static_cast< util::DateTime* >( 0 ) ), + cppu::UnoType<util::DateTime>::get(), uno::Any(), beans::PropertyState_DEFAULT_VALUE, beans::PropertyAttribute::MAYBEVOID @@ -321,7 +321,7 @@ shell::shell( const uno::Reference< uno::XComponentContext >& rxContext, m_aDefaultProperties.insert( MyProperty( true, Size, -1, - getCppuType( static_cast< sal_Int64* >( 0 ) ), + cppu::UnoType<sal_Int64>::get(), uno::Any(), beans::PropertyState_DEFAULT_VALUE, beans::PropertyAttribute::MAYBEVOID @@ -331,7 +331,7 @@ shell::shell( const uno::Reference< uno::XComponentContext >& rxContext, m_aDefaultProperties.insert( MyProperty( true, IsReadOnly, -1 , - getCppuType( static_cast< sal_Bool* >( 0 ) ), + cppu::UnoType<sal_Bool>::get(), uno::Any(), beans::PropertyState_DEFAULT_VALUE, beans::PropertyAttribute::MAYBEVOID @@ -376,7 +376,7 @@ shell::shell( const uno::Reference< uno::XComponentContext >& rxContext, m_sCommandInfo[6].Name = "delete"; m_sCommandInfo[6].Handle = -1; - m_sCommandInfo[6].ArgType = getCppuType( static_cast< sal_Bool* >( 0 ) ); + m_sCommandInfo[6].ArgType = cppu::UnoType<sal_Bool>::get(); m_sCommandInfo[7].Name = "insert"; m_sCommandInfo[7].Handle = -1; @@ -384,7 +384,7 @@ shell::shell( const uno::Reference< uno::XComponentContext >& rxContext, m_sCommandInfo[7].Name = "createNewContent"; m_sCommandInfo[7].Handle = -1; - m_sCommandInfo[7].ArgType = getCppuType( static_cast< ucb::ContentInfo * > ( 0 ) ); + m_sCommandInfo[7].ArgType = cppu::UnoType<ucb::ContentInfo>::get(); if(m_bWithConfig) { @@ -3019,7 +3019,7 @@ uno::Sequence< ucb::ContentInfo > shell::queryCreatableContentsInfo() props[0] = beans::Property( OUString("Title"), -1, - getCppuType( static_cast< OUString* >( 0 ) ), + cppu::UnoType<OUString>::get(), beans::PropertyAttribute::MAYBEVOID | beans::PropertyAttribute::BOUND ); seq[0].Properties = props; |