From 7aa7f4d9e4294959748bccf9e763154740251635 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 4 Sep 2017 08:53:38 +0200 Subject: loplugin:unnecessaryparen include c++ casts Change-Id: I132d3c66f0562e2c37a02eaf4c168d06c2b473eb Reviewed-on: https://gerrit.libreoffice.org/41874 Tested-by: Jenkins Reviewed-by: Noel Grandin --- io/source/stm/odata.cxx | 16 ++++++++-------- io/source/stm/omark.cxx | 8 ++++---- io/source/stm/opipe.cxx | 6 +++--- 3 files changed, 15 insertions(+), 15 deletions(-) (limited to 'io') diff --git a/io/source/stm/odata.cxx b/io/source/stm/odata.cxx index f8e45e28a0dd..618d52ffa3f7 100644 --- a/io/source/stm/odata.cxx +++ b/io/source/stm/odata.cxx @@ -384,7 +384,7 @@ void ODataInputStream::setSuccessor( const Reference < XConnectable > &r ) if( m_succ.is() ) { /// set this instance as the sink ! m_succ->setPredecessor( Reference< XConnectable > ( - (static_cast< XConnectable * >(this)) ) ); + static_cast< XConnectable * >(this) ) ); } } } @@ -402,7 +402,7 @@ void ODataInputStream::setPredecessor( const Reference < XConnectable > &r ) m_pred = r; if( m_pred.is() ) { m_pred->setSuccessor( Reference< XConnectable > ( - (static_cast< XConnectable * >(this)) ) ); + static_cast< XConnectable * >(this) ) ); } } } @@ -722,7 +722,7 @@ void ODataOutputStream::setSuccessor( const Reference < XConnectable > &r ) { /// set this instance as the sink ! m_succ->setPredecessor( Reference < XConnectable > ( - (static_cast< XConnectable * >(this)) )); + static_cast< XConnectable * >(this) )); } } } @@ -739,7 +739,7 @@ void ODataOutputStream::setPredecessor( const Reference < XConnectable > &r ) m_pred = r; if( m_pred.is() ) { m_pred->setSuccessor( Reference< XConnectable > ( - (static_cast< XConnectable * >(this)) )); + static_cast< XConnectable * >(this) )); } } } @@ -932,7 +932,7 @@ void OObjectOutputStream::writeObject( const Reference< XPersistObject > & xPObj if( bWriteObj ) xPObj->write( Reference< XObjectOutputStream > ( - (static_cast< XObjectOutputStream * >(this)) ) ); + static_cast< XObjectOutputStream * >(this) ) ); sal_Int32 nObjLen = m_rMarkable->offsetToMark( nObjLenMark ) -4; m_rMarkable->jumpToMark( nObjLenMark ); @@ -1021,7 +1021,7 @@ Reference< XInterface > SAL_CALL OObjectOutputStream_CreateInstance( SAL_UNUSED_PARAMETER const Reference < XComponentContext > & ) { OObjectOutputStream *p = new OObjectOutputStream; - return Reference< XInterface > ( (static_cast< OWeakObject * >(p)) ); + return Reference< XInterface > ( static_cast< OWeakObject * >(p) ); } OUString OObjectOutputStream_getImplementationName() @@ -1181,7 +1181,7 @@ Reference< XPersistObject > OObjectInputStream::readObject() m_aPersistVector[nId] = xLoadedObj; xLoadedObj->read( Reference< XObjectInputStream >( - (static_cast< XObjectInputStream * >(this)) ) ); + static_cast< XObjectInputStream * >(this) ) ); } else { @@ -1303,7 +1303,7 @@ Sequence< OUString > OObjectInputStream::getSupportedServiceNames() Reference< XInterface > SAL_CALL OObjectInputStream_CreateInstance( const Reference < XComponentContext > & rCtx ) { OObjectInputStream *p = new OObjectInputStream( rCtx ); - return Reference< XInterface> ( (static_cast< OWeakObject * >(p)) ); + return Reference< XInterface> ( static_cast< OWeakObject * >(p) ); } OUString OObjectInputStream_getImplementationName() diff --git a/io/source/stm/omark.cxx b/io/source/stm/omark.cxx index cdf1b0924183..4dff49e4c0de 100644 --- a/io/source/stm/omark.cxx +++ b/io/source/stm/omark.cxx @@ -289,7 +289,7 @@ void OMarkableOutputStream::setSuccessor( const Reference< XConnectable > &r ) if( m_succ.is() ) { m_succ->setPredecessor( Reference < XConnectable > ( - (static_cast< XConnectable * >(this)) ) ); + static_cast< XConnectable * >(this) ) ); } } } @@ -306,7 +306,7 @@ void OMarkableOutputStream::setPredecessor( const Reference< XConnectable > &r ) m_pred = r; if( m_pred.is() ) { m_pred->setSuccessor( Reference < XConnectable > ( - (static_cast< XConnectable * >(this )) ) ); + static_cast< XConnectable * >(this ) ) ); } } } @@ -718,7 +718,7 @@ void OMarkableInputStream::setSuccessor( const Reference< XConnectable > &r ) if( m_succ.is() ) { /// set this instance as the sink ! m_succ->setPredecessor( Reference< XConnectable > ( - (static_cast< XConnectable * >(this)) ) ); + static_cast< XConnectable * >(this) ) ); } } } @@ -736,7 +736,7 @@ void OMarkableInputStream::setPredecessor( const Reference < XConnectable > &r m_pred = r; if( m_pred.is() ) { m_pred->setSuccessor( Reference< XConnectable > ( - (static_cast< XConnectable * >(this)) ) ); + static_cast< XConnectable * >(this) ) ); } } } diff --git a/io/source/stm/opipe.cxx b/io/source/stm/opipe.cxx index ccc3214cc8a5..c71954696150 100644 --- a/io/source/stm/opipe.cxx +++ b/io/source/stm/opipe.cxx @@ -299,7 +299,7 @@ void OPipeImpl::setSuccessor( const Reference < XConnectable > &r ) if( m_succ.is() ) { m_succ->setPredecessor( - Reference< XConnectable > ( (static_cast< XConnectable * >(this)) ) ); + Reference< XConnectable > ( static_cast< XConnectable * >(this) ) ); } } } @@ -317,7 +317,7 @@ void OPipeImpl::setPredecessor( const Reference < XConnectable > &r ) m_pred = r; if( m_pred.is() ) { m_pred->setSuccessor( - Reference < XConnectable > ( (static_cast< XConnectable * >(this)) ) ); + Reference < XConnectable > ( static_cast< XConnectable * >(this) ) ); } } } @@ -357,7 +357,7 @@ Reference < XInterface > SAL_CALL OPipeImpl_CreateInstance( { OPipeImpl *p = new OPipeImpl; - return Reference < XInterface > ( (static_cast< OWeakObject * >(p)) ); + return Reference < XInterface > ( static_cast< OWeakObject * >(p) ); } -- cgit