summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/file
diff options
context:
space:
mode:
Diffstat (limited to 'ucb/source/ucp/file')
-rw-r--r--ucb/source/ucp/file/bc.cxx20
-rw-r--r--ucb/source/ucp/file/filcmd.cxx2
-rw-r--r--ucb/source/ucp/file/filid.cxx4
-rw-r--r--ucb/source/ucp/file/filinpstr.cxx6
-rw-r--r--ucb/source/ucp/file/filstr.cxx2
-rw-r--r--ucb/source/ucp/file/filtask.cxx2
-rw-r--r--ucb/source/ucp/file/prov.cxx2
7 files changed, 19 insertions, 19 deletions
diff --git a/ucb/source/ucp/file/bc.cxx b/ucb/source/ucp/file/bc.cxx
index 557ddc5d4b60..03be0c341b3d 100644
--- a/ucb/source/ucp/file/bc.cxx
+++ b/ucb/source/ucp/file/bc.cxx
@@ -159,16 +159,16 @@ Any SAL_CALL
BaseContent::queryInterface( const Type& rType )
{
Any aRet = cppu::queryInterface( rType,
- (static_cast< lang::XComponent* >(this)),
- (static_cast< lang::XTypeProvider* >(this)),
- (static_cast< lang::XServiceInfo* >(this)),
- (static_cast< XCommandProcessor* >(this)),
- (static_cast< container::XChild* >(this)),
- (static_cast< beans::XPropertiesChangeNotifier* >(this)),
- (static_cast< beans::XPropertyContainer* >(this)),
- (static_cast< XContentCreator* >(this)),
- (static_cast< beans::XPropertySetInfoChangeNotifier* >(this)),
- (static_cast< XContent* >(this)) );
+ static_cast< lang::XComponent* >(this),
+ static_cast< lang::XTypeProvider* >(this),
+ static_cast< lang::XServiceInfo* >(this),
+ static_cast< XCommandProcessor* >(this),
+ static_cast< container::XChild* >(this),
+ static_cast< beans::XPropertiesChangeNotifier* >(this),
+ static_cast< beans::XPropertyContainer* >(this),
+ static_cast< XContentCreator* >(this),
+ static_cast< beans::XPropertySetInfoChangeNotifier* >(this),
+ static_cast< XContent* >(this) );
return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
}
diff --git a/ucb/source/ucp/file/filcmd.cxx b/ucb/source/ucp/file/filcmd.cxx
index b84f19a8708c..a3bdf595d95f 100644
--- a/ucb/source/ucp/file/filcmd.cxx
+++ b/ucb/source/ucp/file/filcmd.cxx
@@ -65,7 +65,7 @@ uno::Any SAL_CALL
XCommandInfo_impl::queryInterface( const uno::Type& rType )
{
uno::Any aRet = cppu::queryInterface( rType,
- (static_cast< XCommandInfo* >(this)) );
+ static_cast< XCommandInfo* >(this) );
return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
}
diff --git a/ucb/source/ucp/file/filid.cxx b/ucb/source/ucp/file/filid.cxx
index 830cf9b1ab4b..80a9974930f7 100644
--- a/ucb/source/ucp/file/filid.cxx
+++ b/ucb/source/ucp/file/filid.cxx
@@ -67,8 +67,8 @@ uno::Any SAL_CALL
FileContentIdentifier::queryInterface( const uno::Type& rType )
{
uno::Any aRet = cppu::queryInterface( rType,
- (static_cast< lang::XTypeProvider* >(this)),
- (static_cast< XContentIdentifier* >(this)) );
+ static_cast< lang::XTypeProvider* >(this),
+ static_cast< XContentIdentifier* >(this) );
return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
}
diff --git a/ucb/source/ucp/file/filinpstr.cxx b/ucb/source/ucp/file/filinpstr.cxx
index af0f03d52de4..39448e16f6c9 100644
--- a/ucb/source/ucp/file/filinpstr.cxx
+++ b/ucb/source/ucp/file/filinpstr.cxx
@@ -89,9 +89,9 @@ uno::Any SAL_CALL
XInputStream_impl::queryInterface( const uno::Type& rType )
{
uno::Any aRet = cppu::queryInterface( rType,
- (static_cast< io::XInputStream* >(this)),
- (static_cast< lang::XTypeProvider* >(this)),
- (static_cast< io::XSeekable* >(this)) );
+ static_cast< io::XInputStream* >(this),
+ static_cast< lang::XTypeProvider* >(this),
+ static_cast< io::XSeekable* >(this) );
return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
}
diff --git a/ucb/source/ucp/file/filstr.cxx b/ucb/source/ucp/file/filstr.cxx
index 75b1011de2c0..ce92a7dd8ae9 100644
--- a/ucb/source/ucp/file/filstr.cxx
+++ b/ucb/source/ucp/file/filstr.cxx
@@ -182,7 +182,7 @@ XStream_impl::writeBytes( const uno::Sequence< sal_Int8 >& aData )
{
sal_uInt64 nWrittenBytes(0);
const sal_Int8* p = aData.getConstArray();
- if(osl::FileBase::E_None != m_aFile.write((static_cast<void const *>(p)),sal_uInt64(length),nWrittenBytes) ||
+ if(osl::FileBase::E_None != m_aFile.write(static_cast<void const *>(p),sal_uInt64(length),nWrittenBytes) ||
nWrittenBytes != length )
throw io::IOException( THROW_WHERE );
}
diff --git a/ucb/source/ucp/file/filtask.cxx b/ucb/source/ucp/file/filtask.cxx
index 23985897f11d..403e8fc0bd5d 100644
--- a/ucb/source/ucp/file/filtask.cxx
+++ b/ucb/source/ucp/file/filtask.cxx
@@ -1935,7 +1935,7 @@ TaskManager::write( sal_Int32 CommandId,
{
const sal_Int8* p = seq.getConstArray();
- err = aFile.write( (static_cast<void const *>(p)),
+ err = aFile.write( static_cast<void const *>(p),
sal_uInt64( nReadBytes ),
nWrittenBytes );
diff --git a/ucb/source/ucp/file/prov.cxx b/ucb/source/ucp/file/prov.cxx
index 82c2f7b9cf7f..f2f888ed8d31 100644
--- a/ucb/source/ucp/file/prov.cxx
+++ b/ucb/source/ucp/file/prov.cxx
@@ -318,7 +318,7 @@ Any SAL_CALL
XPropertySetInfoImpl2::queryInterface( const Type& rType )
{
Any aRet = cppu::queryInterface( rType,
- (static_cast< XPropertySetInfo* >(this)) );
+ static_cast< XPropertySetInfo* >(this) );
return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
}