summaryrefslogtreecommitdiff
path: root/unotools
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 /unotools
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 'unotools')
-rw-r--r--unotools/source/config/securityoptions.cxx4
-rw-r--r--unotools/source/ucbhelper/ucblockbytes.hxx6
2 files changed, 5 insertions, 5 deletions
diff --git a/unotools/source/config/securityoptions.cxx b/unotools/source/config/securityoptions.cxx
index ce16fc9ad633..de9c0dcc2dfc 100644
--- a/unotools/source/config/securityoptions.cxx
+++ b/unotools/source/config/securityoptions.cxx
@@ -871,7 +871,7 @@ bool SvtSecurityOptions_Impl::IsOptionSet( SvtSecurityOptions::EOption eOption )
bool* pRO;
bool bRet = false;
- if( ( const_cast< SvtSecurityOptions_Impl* >( this ) )->GetOption( eOption, pValue, pRO ) )
+ if( const_cast< SvtSecurityOptions_Impl* >( this )->GetOption( eOption, pValue, pRO ) )
bRet = *pValue;
return bRet;
@@ -895,7 +895,7 @@ bool SvtSecurityOptions_Impl::IsOptionEnabled( SvtSecurityOptions::EOption eOpti
bool* pRO;
bool bRet = false;
- if( ( const_cast< SvtSecurityOptions_Impl* >( this ) )->GetOption( eOption, pValue, pRO ) )
+ if( const_cast< SvtSecurityOptions_Impl* >( this )->GetOption( eOption, pValue, pRO ) )
bRet = !*pRO;
return bRet;
diff --git a/unotools/source/ucbhelper/ucblockbytes.hxx b/unotools/source/ucbhelper/ucblockbytes.hxx
index 3ce1dfe850b5..71ebf42ed088 100644
--- a/unotools/source/ucbhelper/ucblockbytes.hxx
+++ b/unotools/source/ucbhelper/ucblockbytes.hxx
@@ -124,19 +124,19 @@ public:
css::uno::Reference < css::io::XInputStream > getInputStream_Impl() const
{
- osl::MutexGuard aGuard( (const_cast< UcbLockBytes* >(this))->m_aMutex );
+ osl::MutexGuard aGuard( const_cast< UcbLockBytes* >(this)->m_aMutex );
return m_xInputStream;
}
css::uno::Reference < css::io::XOutputStream > getOutputStream_Impl() const
{
- osl::MutexGuard aGuard( (const_cast< UcbLockBytes* >(this))->m_aMutex );
+ osl::MutexGuard aGuard( const_cast< UcbLockBytes* >(this)->m_aMutex );
return m_xOutputStream;
}
css::uno::Reference < css::io::XSeekable > getSeekable_Impl() const
{
- osl::MutexGuard aGuard( (const_cast< UcbLockBytes* >(this))->m_aMutex );
+ osl::MutexGuard aGuard( const_cast< UcbLockBytes* >(this)->m_aMutex );
return m_xSeekable;
}