summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-09-04 08:53:38 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-09-04 10:52:41 +0200
commit7aa7f4d9e4294959748bccf9e763154740251635 (patch)
tree79fc3855ce0cc1141abdda514df374cd42ab259c /ucb
parent6f511a5de909b2fb6cb42b851e0cc90f54fbdd59 (diff)
loplugin:unnecessaryparen include c++ casts
Change-Id: I132d3c66f0562e2c37a02eaf4c168d06c2b473eb Reviewed-on: https://gerrit.libreoffice.org/41874 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/cacher/cachedcontentresultset.cxx10
-rw-r--r--ucb/source/cacher/cachedcontentresultsetstub.cxx6
-rw-r--r--ucb/source/cacher/cacheddynamicresultset.cxx6
-rw-r--r--ucb/source/cacher/cacheddynamicresultsetstub.cxx6
-rw-r--r--ucb/source/cacher/contentresultsetwrapper.cxx14
-rw-r--r--ucb/source/cacher/dynamicresultsetwrapper.cxx10
-rw-r--r--ucb/source/core/ucb.cxx20
-rw-r--r--ucb/source/ucp/cmis/cmis_provider.cxx6
-rw-r--r--ucb/source/ucp/cmis/std_inputstream.cxx4
-rw-r--r--ucb/source/ucp/cmis/std_outputstream.cxx2
-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
-rw-r--r--ucb/source/ucp/ftp/ftpcontent.cxx12
-rw-r--r--ucb/source/ucp/ftp/ftpcontentidentifier.cxx4
-rw-r--r--ucb/source/ucp/ftp/ftpcontentprovider.cxx6
-rw-r--r--ucb/source/ucp/ftp/ftpresultsetbase.cxx14
-rw-r--r--ucb/source/ucp/gio/gio_provider.cxx6
-rw-r--r--ucb/source/ucp/hierarchy/hierarchydatasource.cxx8
-rw-r--r--ucb/source/ucp/hierarchy/hierarchyprovider.cxx8
-rw-r--r--ucb/source/ucp/package/pkgprovider.cxx6
-rw-r--r--ucb/source/ucp/tdoc/tdoc_provider.cxx8
-rw-r--r--ucb/source/ucp/webdav-neon/webdavprovider.cxx6
27 files changed, 100 insertions, 100 deletions
diff --git a/ucb/source/cacher/cachedcontentresultset.cxx b/ucb/source/cacher/cachedcontentresultset.cxx
index dbe645cf2e04..4c160c3ed4e8 100644
--- a/ucb/source/cacher/cachedcontentresultset.cxx
+++ b/ucb/source/cacher/cachedcontentresultset.cxx
@@ -505,8 +505,8 @@ void SAL_CALL CCRS_PropertySetInfo::release()
css::uno::Any SAL_CALL CCRS_PropertySetInfo::queryInterface( const css::uno::Type & rType )
{
css::uno::Any aRet = cppu::queryInterface( rType,
- (static_cast< XTypeProvider* >(this)),
- (static_cast< XPropertySetInfo* >(this))
+ static_cast< XTypeProvider* >(this),
+ static_cast< XPropertySetInfo* >(this)
);
return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
}
@@ -2098,9 +2098,9 @@ void SAL_CALL CachedContentResultSetFactory::release()
css::uno::Any SAL_CALL CachedContentResultSetFactory::queryInterface( const css::uno::Type & rType )
{
css::uno::Any aRet = cppu::queryInterface( rType,
- (static_cast< XTypeProvider* >(this)),
- (static_cast< XServiceInfo* >(this)),
- (static_cast< XCachedContentResultSetFactory* >(this))
+ static_cast< XTypeProvider* >(this),
+ static_cast< XServiceInfo* >(this),
+ static_cast< XCachedContentResultSetFactory* >(this)
);
return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
}
diff --git a/ucb/source/cacher/cachedcontentresultsetstub.cxx b/ucb/source/cacher/cachedcontentresultsetstub.cxx
index c6ed4018072b..b6f15e98bcc3 100644
--- a/ucb/source/cacher/cachedcontentresultsetstub.cxx
+++ b/ucb/source/cacher/cachedcontentresultsetstub.cxx
@@ -511,9 +511,9 @@ void SAL_CALL CachedContentResultSetStubFactory::release()
css::uno::Any SAL_CALL CachedContentResultSetStubFactory::queryInterface( const css::uno::Type & rType )
{
css::uno::Any aRet = cppu::queryInterface( rType,
- (static_cast< XTypeProvider* >(this)),
- (static_cast< XServiceInfo* >(this)),
- (static_cast< XCachedContentResultSetStubFactory* >(this))
+ static_cast< XTypeProvider* >(this),
+ static_cast< XServiceInfo* >(this),
+ static_cast< XCachedContentResultSetStubFactory* >(this)
);
return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
}
diff --git a/ucb/source/cacher/cacheddynamicresultset.cxx b/ucb/source/cacher/cacheddynamicresultset.cxx
index d72688f8d688..fa99c0e6d2ef 100644
--- a/ucb/source/cacher/cacheddynamicresultset.cxx
+++ b/ucb/source/cacher/cacheddynamicresultset.cxx
@@ -174,9 +174,9 @@ void SAL_CALL CachedDynamicResultSetFactory::release()
css::uno::Any SAL_CALL CachedDynamicResultSetFactory::queryInterface( const css::uno::Type & rType )
{
css::uno::Any aRet = cppu::queryInterface( rType,
- (static_cast< XTypeProvider* >(this)),
- (static_cast< XServiceInfo* >(this)),
- (static_cast< XCachedDynamicResultSetFactory* >(this))
+ static_cast< XTypeProvider* >(this),
+ static_cast< XServiceInfo* >(this),
+ static_cast< XCachedDynamicResultSetFactory* >(this)
);
return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
}
diff --git a/ucb/source/cacher/cacheddynamicresultsetstub.cxx b/ucb/source/cacher/cacheddynamicresultsetstub.cxx
index e25fa173bcf1..5e69d922f375 100644
--- a/ucb/source/cacher/cacheddynamicresultsetstub.cxx
+++ b/ucb/source/cacher/cacheddynamicresultsetstub.cxx
@@ -166,9 +166,9 @@ void SAL_CALL CachedDynamicResultSetStubFactory::release()
css::uno::Any SAL_CALL CachedDynamicResultSetStubFactory::queryInterface( const css::uno::Type & rType )
{
css::uno::Any aRet = cppu::queryInterface( rType,
- (static_cast< XTypeProvider* >(this)),
- (static_cast< XServiceInfo* >(this)),
- (static_cast< XCachedDynamicResultSetStubFactory* >(this))
+ static_cast< XTypeProvider* >(this),
+ static_cast< XServiceInfo* >(this),
+ static_cast< XCachedDynamicResultSetStubFactory* >(this)
);
return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
}
diff --git a/ucb/source/cacher/contentresultsetwrapper.cxx b/ucb/source/cacher/contentresultsetwrapper.cxx
index 06a7b1f8a129..978b60c897de 100644
--- a/ucb/source/cacher/contentresultsetwrapper.cxx
+++ b/ucb/source/cacher/contentresultsetwrapper.cxx
@@ -324,13 +324,13 @@ css::uno::Any SAL_CALL ContentResultSetWrapper::queryInterface( const css::uno::
{
//list all interfaces inclusive baseclasses of interfaces
css::uno::Any aRet = cppu::queryInterface( rType,
- (static_cast< XComponent* >(this)),
- (static_cast< XCloseable* >(this)),
- (static_cast< XResultSetMetaDataSupplier* >(this)),
- (static_cast< XPropertySet* >(this)),
- (static_cast< XContentAccess* >(this)),
- (static_cast< XResultSet* >(this)),
- (static_cast< XRow* >(this))
+ static_cast< XComponent* >(this),
+ static_cast< XCloseable* >(this),
+ static_cast< XResultSetMetaDataSupplier* >(this),
+ static_cast< XPropertySet* >(this),
+ static_cast< XContentAccess* >(this),
+ static_cast< XResultSet* >(this),
+ static_cast< XRow* >(this)
);
return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
}
diff --git a/ucb/source/cacher/dynamicresultsetwrapper.cxx b/ucb/source/cacher/dynamicresultsetwrapper.cxx
index 8e984855c6b6..50c562a3100e 100644
--- a/ucb/source/cacher/dynamicresultsetwrapper.cxx
+++ b/ucb/source/cacher/dynamicresultsetwrapper.cxx
@@ -119,9 +119,9 @@ css::uno::Any SAL_CALL DynamicResultSetWrapper::queryInterface( const css::uno::
{
//list all interfaces inclusive baseclasses of interfaces
css::uno::Any aRet = cppu::queryInterface( rType,
- (static_cast< XComponent* >(this)), //base of XDynamicResultSet
- (static_cast< XDynamicResultSet* >(this)),
- (static_cast< XSourceInitialization* >(this))
+ static_cast< XComponent* >(this), //base of XDynamicResultSet
+ static_cast< XDynamicResultSet* >(this),
+ static_cast< XSourceInitialization* >(this)
);
return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
}
@@ -455,8 +455,8 @@ void SAL_CALL DynamicResultSetWrapperListener::release()
css::uno::Any SAL_CALL DynamicResultSetWrapperListener::queryInterface( const css::uno::Type & rType )
{
css::uno::Any aRet = cppu::queryInterface( rType,
- (static_cast< XDynamicResultSetListener* >(this)),
- (static_cast< XEventListener* >(this))
+ static_cast< XDynamicResultSetListener* >(this),
+ static_cast< XEventListener* >(this)
);
return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
}
diff --git a/ucb/source/core/ucb.cxx b/ucb/source/core/ucb.cxx
index 8fcd8697cd79..63eb33a35fa4 100644
--- a/ucb/source/core/ucb.cxx
+++ b/ucb/source/core/ucb.cxx
@@ -260,15 +260,15 @@ void SAL_CALL UniversalContentBroker::release()
css::uno::Any SAL_CALL UniversalContentBroker::queryInterface( const css::uno::Type & rType )
{
css::uno::Any aRet = cppu::queryInterface( rType,
- (static_cast< XUniversalContentBroker* >(this)),
- (static_cast< XTypeProvider* >(this)),
- (static_cast< XComponent* >(this)),
- (static_cast< XServiceInfo* >(this)),
- (static_cast< XInitialization* >(this)),
- (static_cast< XContentProviderManager* >(this)),
- (static_cast< XContentProvider* >(this)),
- (static_cast< XContentIdentifierFactory* >(this)),
- (static_cast< XCommandProcessor* >(this))
+ static_cast< XUniversalContentBroker* >(this),
+ static_cast< XTypeProvider* >(this),
+ static_cast< XComponent* >(this),
+ static_cast< XServiceInfo* >(this),
+ static_cast< XInitialization* >(this),
+ static_cast< XContentProviderManager* >(this),
+ static_cast< XContentProvider* >(this),
+ static_cast< XContentIdentifierFactory* >(this),
+ static_cast< XCommandProcessor* >(this)
);
return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
}
@@ -297,7 +297,7 @@ void SAL_CALL UniversalContentBroker::dispose()
if ( m_pDisposeEventListeners && m_pDisposeEventListeners->getLength() )
{
EventObject aEvt;
- aEvt.Source = (static_cast< XComponent* >(this));
+ aEvt.Source = static_cast< XComponent* >(this);
m_pDisposeEventListeners->disposeAndClear( aEvt );
}
diff --git a/ucb/source/ucp/cmis/cmis_provider.cxx b/ucb/source/ucp/cmis/cmis_provider.cxx
index 9ac2e7e1fc08..e043d167e028 100644
--- a/ucb/source/ucp/cmis/cmis_provider.cxx
+++ b/ucb/source/ucp/cmis/cmis_provider.cxx
@@ -104,9 +104,9 @@ void SAL_CALL ContentProvider::release()
css::uno::Any SAL_CALL ContentProvider::queryInterface( const css::uno::Type & rType )
{
css::uno::Any aRet = cppu::queryInterface( rType,
- (static_cast< lang::XTypeProvider* >(this)),
- (static_cast< lang::XServiceInfo* >(this)),
- (static_cast< css::ucb::XContentProvider* >(this))
+ static_cast< lang::XTypeProvider* >(this),
+ static_cast< lang::XServiceInfo* >(this),
+ static_cast< css::ucb::XContentProvider* >(this)
);
return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
}
diff --git a/ucb/source/ucp/cmis/std_inputstream.cxx b/ucb/source/ucp/cmis/std_inputstream.cxx
index c5ea2eceac05..5c851f1795f8 100644
--- a/ucb/source/ucp/cmis/std_inputstream.cxx
+++ b/ucb/source/ucp/cmis/std_inputstream.cxx
@@ -42,8 +42,8 @@ namespace cmis
uno::Any SAL_CALL StdInputStream::queryInterface( const uno::Type& rType )
{
uno::Any aRet = ::cppu::queryInterface( rType,
- ( static_cast< XInputStream* >( this ) ),
- ( static_cast< XSeekable* >( this ) ) );
+ static_cast< XInputStream* >( this ),
+ static_cast< XSeekable* >( this ) );
return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
}
diff --git a/ucb/source/ucp/cmis/std_outputstream.cxx b/ucb/source/ucp/cmis/std_outputstream.cxx
index 0398e6241ae6..8c87b6c405d8 100644
--- a/ucb/source/ucp/cmis/std_outputstream.cxx
+++ b/ucb/source/ucp/cmis/std_outputstream.cxx
@@ -32,7 +32,7 @@ namespace cmis
uno::Any SAL_CALL StdOutputStream::queryInterface( const uno::Type& rType )
{
- uno::Any aRet = ::cppu::queryInterface( rType, ( static_cast< XOutputStream* >( this ) ) );
+ uno::Any aRet = ::cppu::queryInterface( rType, static_cast< XOutputStream* >( this ) );
return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
}
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 );
}
diff --git a/ucb/source/ucp/ftp/ftpcontent.cxx b/ucb/source/ucp/ftp/ftpcontent.cxx
index edc0f3d517b1..d53310a5928c 100644
--- a/ucb/source/ucp/ftp/ftpcontent.cxx
+++ b/ucb/source/ucp/ftp/ftpcontent.cxx
@@ -134,12 +134,12 @@ void SAL_CALL FTPContent::release()
css::uno::Any SAL_CALL FTPContent::queryInterface( const css::uno::Type & rType )
{
css::uno::Any aRet = cppu::queryInterface( rType,
- (static_cast< XTypeProvider* >(this)),
- (static_cast< XServiceInfo* >(this)),
- (static_cast< XContent* >(this)),
- (static_cast< XCommandProcessor* >(this)),
- (static_cast< XContentCreator* >(this)),
- (static_cast< XChild* >(this))
+ static_cast< XTypeProvider* >(this),
+ static_cast< XServiceInfo* >(this),
+ static_cast< XContent* >(this),
+ static_cast< XCommandProcessor* >(this),
+ static_cast< XContentCreator* >(this),
+ static_cast< XChild* >(this)
);
return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
}
diff --git a/ucb/source/ucp/ftp/ftpcontentidentifier.cxx b/ucb/source/ucp/ftp/ftpcontentidentifier.cxx
index f60f800759e9..85f6386c8bd0 100644
--- a/ucb/source/ucp/ftp/ftpcontentidentifier.cxx
+++ b/ucb/source/ucp/ftp/ftpcontentidentifier.cxx
@@ -52,8 +52,8 @@ FTPContentIdentifier::queryInterface(
{
Any aRet =
::cppu::queryInterface(rType,
- (static_cast< XTypeProvider* >(this)),
- (static_cast< XContentIdentifier* >(this)));
+ static_cast< XTypeProvider* >(this),
+ static_cast< XContentIdentifier* >(this));
return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
}
diff --git a/ucb/source/ucp/ftp/ftpcontentprovider.cxx b/ucb/source/ucp/ftp/ftpcontentprovider.cxx
index 4630e22653a5..9b5f1a8e308a 100644
--- a/ucb/source/ucp/ftp/ftpcontentprovider.cxx
+++ b/ucb/source/ucp/ftp/ftpcontentprovider.cxx
@@ -67,9 +67,9 @@ void SAL_CALL FTPContentProvider::release()
css::uno::Any SAL_CALL FTPContentProvider::queryInterface( const css::uno::Type & rType )
{
css::uno::Any aRet = cppu::queryInterface( rType,
- (static_cast< XTypeProvider* >(this)),
- (static_cast< XServiceInfo* >(this)),
- (static_cast< XContentProvider* >(this))
+ static_cast< XTypeProvider* >(this),
+ static_cast< XServiceInfo* >(this),
+ static_cast< XContentProvider* >(this)
);
return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
}
diff --git a/ucb/source/ucp/ftp/ftpresultsetbase.cxx b/ucb/source/ucp/ftp/ftpresultsetbase.cxx
index b95b18ad5df3..8e10e3d07e62 100644
--- a/ucb/source/ucp/ftp/ftpresultsetbase.cxx
+++ b/ucb/source/ucp/ftp/ftpresultsetbase.cxx
@@ -77,12 +77,12 @@ ResultSetBase::queryInterface( const uno::Type& rType )
{
uno::Any aRet = cppu::queryInterface(
rType,
- (static_cast< lang::XComponent* >(this)),
- (static_cast< sdbc::XRow* >(this)),
- (static_cast< sdbc::XResultSet* >(this)),
- (static_cast< sdbc::XResultSetMetaDataSupplier* >(this)),
- (static_cast< beans::XPropertySet* >(this)),
- (static_cast< ucb::XContentAccess* >(this)) );
+ static_cast< lang::XComponent* >(this),
+ static_cast< sdbc::XRow* >(this),
+ static_cast< sdbc::XResultSet* >(this),
+ static_cast< sdbc::XResultSetMetaDataSupplier* >(this),
+ static_cast< beans::XPropertySet* >(this),
+ static_cast< ucb::XContentAccess* >(this) );
return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
}
@@ -372,7 +372,7 @@ public:
{
uno::Any aRet = cppu::queryInterface(
rType,
- (static_cast< beans::XPropertySetInfo* >(this)) );
+ static_cast< beans::XPropertySetInfo* >(this) );
return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
}
diff --git a/ucb/source/ucp/gio/gio_provider.cxx b/ucb/source/ucp/gio/gio_provider.cxx
index 17d9c65e2293..63183e254588 100644
--- a/ucb/source/ucp/gio/gio_provider.cxx
+++ b/ucb/source/ucp/gio/gio_provider.cxx
@@ -81,9 +81,9 @@ void SAL_CALL ContentProvider::release()
css::uno::Any SAL_CALL ContentProvider::queryInterface( const css::uno::Type & rType )
{
css::uno::Any aRet = cppu::queryInterface( rType,
- (static_cast< lang::XTypeProvider* >(this)),
- (static_cast< lang::XServiceInfo* >(this)),
- (static_cast< css::ucb::XContentProvider* >(this))
+ static_cast< lang::XTypeProvider* >(this),
+ static_cast< lang::XServiceInfo* >(this),
+ static_cast< css::ucb::XContentProvider* >(this)
);
return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
}
diff --git a/ucb/source/ucp/hierarchy/hierarchydatasource.cxx b/ucb/source/ucp/hierarchy/hierarchydatasource.cxx
index 63f6a21bf9b0..091870e0a8a3 100644
--- a/ucb/source/ucp/hierarchy/hierarchydatasource.cxx
+++ b/ucb/source/ucp/hierarchy/hierarchydatasource.cxx
@@ -205,10 +205,10 @@ void SAL_CALL HierarchyDataSource::release()
css::uno::Any SAL_CALL HierarchyDataSource::queryInterface( const css::uno::Type & rType )
{
css::uno::Any aRet = cppu::queryInterface( rType,
- (static_cast< lang::XTypeProvider* >(this)),
- (static_cast< lang::XServiceInfo* >(this)),
- (static_cast< lang::XComponent* >(this)),
- (static_cast< lang::XMultiServiceFactory* >(this))
+ static_cast< lang::XTypeProvider* >(this),
+ static_cast< lang::XServiceInfo* >(this),
+ static_cast< lang::XComponent* >(this),
+ static_cast< lang::XMultiServiceFactory* >(this)
);
return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
}
diff --git a/ucb/source/ucp/hierarchy/hierarchyprovider.cxx b/ucb/source/ucp/hierarchy/hierarchyprovider.cxx
index ffe014d543a6..4945afb35c47 100644
--- a/ucb/source/ucp/hierarchy/hierarchyprovider.cxx
+++ b/ucb/source/ucp/hierarchy/hierarchyprovider.cxx
@@ -75,10 +75,10 @@ void SAL_CALL HierarchyContentProvider::release()
css::uno::Any SAL_CALL HierarchyContentProvider::queryInterface( const css::uno::Type & rType )
{
css::uno::Any aRet = cppu::queryInterface( rType,
- (static_cast< lang::XTypeProvider* >(this)),
- (static_cast< lang::XServiceInfo* >(this)),
- (static_cast< ucb::XContentProvider* >(this)),
- (static_cast< lang::XInitialization* >(this))
+ static_cast< lang::XTypeProvider* >(this),
+ static_cast< lang::XServiceInfo* >(this),
+ static_cast< ucb::XContentProvider* >(this),
+ static_cast< lang::XInitialization* >(this)
);
return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
}
diff --git a/ucb/source/ucp/package/pkgprovider.cxx b/ucb/source/ucp/package/pkgprovider.cxx
index c805603ee4e9..93b22fd1ffee 100644
--- a/ucb/source/ucp/package/pkgprovider.cxx
+++ b/ucb/source/ucp/package/pkgprovider.cxx
@@ -127,9 +127,9 @@ void SAL_CALL ContentProvider::release()
css::uno::Any SAL_CALL ContentProvider::queryInterface( const css::uno::Type & rType )
{
css::uno::Any aRet = cppu::queryInterface( rType,
- (static_cast< lang::XTypeProvider* >(this)),
- (static_cast< lang::XServiceInfo* >(this)),
- (static_cast< ucb::XContentProvider* >(this))
+ static_cast< lang::XTypeProvider* >(this),
+ static_cast< lang::XServiceInfo* >(this),
+ static_cast< ucb::XContentProvider* >(this)
);
return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
}
diff --git a/ucb/source/ucp/tdoc/tdoc_provider.cxx b/ucb/source/ucp/tdoc/tdoc_provider.cxx
index dd44ccee7b70..dbcd58851012 100644
--- a/ucb/source/ucp/tdoc/tdoc_provider.cxx
+++ b/ucb/source/ucp/tdoc/tdoc_provider.cxx
@@ -82,10 +82,10 @@ void SAL_CALL ContentProvider::release()
css::uno::Any SAL_CALL ContentProvider::queryInterface( const css::uno::Type & rType )
{
css::uno::Any aRet = cppu::queryInterface( rType,
- (static_cast< lang::XTypeProvider* >(this)),
- (static_cast< lang::XServiceInfo* >(this)),
- (static_cast< ucb::XContentProvider* >(this)),
- (static_cast< frame::XTransientDocumentsDocumentContentFactory* >(this))
+ static_cast< lang::XTypeProvider* >(this),
+ static_cast< lang::XServiceInfo* >(this),
+ static_cast< ucb::XContentProvider* >(this),
+ static_cast< frame::XTransientDocumentsDocumentContentFactory* >(this)
);
return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
}
diff --git a/ucb/source/ucp/webdav-neon/webdavprovider.cxx b/ucb/source/ucp/webdav-neon/webdavprovider.cxx
index cfaa4b6ef579..b499bf085fdc 100644
--- a/ucb/source/ucp/webdav-neon/webdavprovider.cxx
+++ b/ucb/source/ucp/webdav-neon/webdavprovider.cxx
@@ -75,9 +75,9 @@ void SAL_CALL ContentProvider::release()
css::uno::Any SAL_CALL ContentProvider::queryInterface( const css::uno::Type & rType )
{
css::uno::Any aRet = cppu::queryInterface( rType,
- (static_cast< lang::XTypeProvider* >(this)),
- (static_cast< lang::XServiceInfo* >(this)),
- (static_cast< ucb::XContentProvider* >(this))
+ static_cast< lang::XTypeProvider* >(this),
+ static_cast< lang::XServiceInfo* >(this),
+ static_cast< ucb::XContentProvider* >(this)
);
return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
}