diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-04 08:53:38 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-04 10:52:41 +0200 |
commit | 7aa7f4d9e4294959748bccf9e763154740251635 (patch) | |
tree | 79fc3855ce0cc1141abdda514df374cd42ab259c /xmlhelp | |
parent | 6f511a5de909b2fb6cb42b851e0cc90f54fbdd59 (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 'xmlhelp')
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/inputstream.cxx | 4 | ||||
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/provider.cxx | 12 | ||||
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/resultsetbase.cxx | 14 | ||||
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/urlparameter.cxx | 4 |
4 files changed, 17 insertions, 17 deletions
diff --git a/xmlhelp/source/cxxhelp/provider/inputstream.cxx b/xmlhelp/source/cxxhelp/provider/inputstream.cxx index 31067b4b1ea0..98bb1243ab0e 100644 --- a/xmlhelp/source/cxxhelp/provider/inputstream.cxx +++ b/xmlhelp/source/cxxhelp/provider/inputstream.cxx @@ -47,8 +47,8 @@ uno::Any SAL_CALL XInputStream_impl::queryInterface( const uno::Type& rType ) { uno::Any aRet = cppu::queryInterface( rType, - (static_cast< io::XInputStream* >(this)), - (static_cast< io::XSeekable* >(this)) ); + static_cast< io::XInputStream* >(this), + static_cast< io::XSeekable* >(this) ); return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType ); } diff --git a/xmlhelp/source/cxxhelp/provider/provider.cxx b/xmlhelp/source/cxxhelp/provider/provider.cxx index 59c20e35ab74..6dd16f955a99 100644 --- a/xmlhelp/source/cxxhelp/provider/provider.cxx +++ b/xmlhelp/source/cxxhelp/provider/provider.cxx @@ -71,12 +71,12 @@ 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::XComponent* >(this)), - (static_cast< lang::XEventListener* >(this)), - (static_cast< container::XContainerListener* >(this)) + static_cast< lang::XTypeProvider* >(this), + static_cast< lang::XServiceInfo* >(this), + static_cast< ucb::XContentProvider* >(this), + static_cast< lang::XComponent* >(this), + static_cast< lang::XEventListener* >(this), + static_cast< container::XContainerListener* >(this) ); return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType ); } diff --git a/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx b/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx index 5b0df00312f6..70fdf9c5e0e5 100644 --- a/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx +++ b/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx @@ -76,12 +76,12 @@ uno::Any SAL_CALL 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 ); } @@ -366,7 +366,7 @@ public: uno::Any SAL_CALL queryInterface( const uno::Type& rType ) override { 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/xmlhelp/source/cxxhelp/provider/urlparameter.cxx b/xmlhelp/source/cxxhelp/provider/urlparameter.cxx index 5666592dd9f9..24f439f10b67 100644 --- a/xmlhelp/source/cxxhelp/provider/urlparameter.cxx +++ b/xmlhelp/source/cxxhelp/provider/urlparameter.cxx @@ -872,8 +872,8 @@ InputStreamTransformer::InputStreamTransformer( URLParameter* urlParam, Any SAL_CALL InputStreamTransformer::queryInterface( const Type& rType ) { 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 ); } |