diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:25:54 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:25:54 +0200 |
commit | 950f7c31ea0ae8a724787f05f23d1fabe59a91b7 (patch) | |
tree | 00c063a7f1c643c039e1115be170ed7f3187186f /io | |
parent | 10bd50c25d485732cf274bec1e80a8500d91e071 (diff) |
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: Ia282c33c70977e3c9e8f1c6fd86bee2fa6eca5c3
Diffstat (limited to 'io')
-rw-r--r-- | io/source/TextInputStream/TextInputStream.cxx | 2 | ||||
-rw-r--r-- | io/source/TextOutputStream/TextOutputStream.cxx | 2 | ||||
-rw-r--r-- | io/source/acceptor/acc_pipe.cxx | 2 | ||||
-rw-r--r-- | io/source/acceptor/acc_socket.cxx | 2 | ||||
-rw-r--r-- | io/source/acceptor/acceptor.cxx | 2 | ||||
-rw-r--r-- | io/source/connector/connector.cxx | 6 | ||||
-rw-r--r-- | io/source/stm/odata.cxx | 2 | ||||
-rw-r--r-- | io/source/stm/omark.cxx | 4 | ||||
-rw-r--r-- | io/source/stm/opump.cxx | 6 |
9 files changed, 14 insertions, 14 deletions
diff --git a/io/source/TextInputStream/TextInputStream.cxx b/io/source/TextInputStream/TextInputStream.cxx index 607f04104674..115ba041998e 100644 --- a/io/source/TextInputStream/TextInputStream.cxx +++ b/io/source/TextInputStream/TextInputStream.cxx @@ -436,7 +436,7 @@ Reference< XInputStream > OTextInputStream::getInputStream() Reference< XInterface > SAL_CALL TextInputStream_CreateInstance( SAL_UNUSED_PARAMETER const Reference< XComponentContext > &) { - return Reference < XInterface >( ( OWeakObject * ) new OTextInputStream() ); + return Reference < XInterface >( static_cast<OWeakObject *>(new OTextInputStream()) ); } OUString TextInputStream_getImplementationName() diff --git a/io/source/TextOutputStream/TextOutputStream.cxx b/io/source/TextOutputStream/TextOutputStream.cxx index 5d678a0a73c1..4a5c7b2fc658 100644 --- a/io/source/TextOutputStream/TextOutputStream.cxx +++ b/io/source/TextOutputStream/TextOutputStream.cxx @@ -244,7 +244,7 @@ Reference< XOutputStream > OTextOutputStream::getOutputStream() Reference< XInterface > SAL_CALL TextOutputStream_CreateInstance( SAL_UNUSED_PARAMETER const Reference< XComponentContext > &) { - return Reference < XInterface >( ( OWeakObject * ) new OTextOutputStream() ); + return Reference < XInterface >( static_cast<OWeakObject *>(new OTextOutputStream()) ); } OUString TextOutputStream_getImplementationName() diff --git a/io/source/acceptor/acc_pipe.cxx b/io/source/acceptor/acc_pipe.cxx index 34d9bf65d15e..28a7cd285925 100644 --- a/io/source/acceptor/acc_pipe.cxx +++ b/io/source/acceptor/acc_pipe.cxx @@ -189,7 +189,7 @@ namespace io_acceptor } else if( osl_Pipe_E_None == status ) { - return Reference < XConnection > ( (XConnection * ) pConn ); + return Reference < XConnection > ( static_cast<XConnection *>(pConn) ); } else { diff --git a/io/source/acceptor/acc_socket.cxx b/io/source/acceptor/acc_socket.cxx index a7eacebf1426..5e374622bd35 100644 --- a/io/source/acceptor/acc_socket.cxx +++ b/io/source/acceptor/acc_socket.cxx @@ -391,7 +391,7 @@ namespace io_acceptor { sizeof( nTcpNoDelay ) , osl_Socket_LevelTcp ); } - return Reference < XConnection > ( (XConnection * ) pConn ); + return Reference < XConnection > ( static_cast<XConnection *>(pConn) ); } void SocketAcceptor::stopAccepting() diff --git a/io/source/acceptor/acceptor.cxx b/io/source/acceptor/acceptor.cxx index 4791dc21b8c8..b6db1a59a11e 100644 --- a/io/source/acceptor/acceptor.cxx +++ b/io/source/acceptor/acceptor.cxx @@ -274,7 +274,7 @@ namespace io_acceptor Reference< XInterface > SAL_CALL acceptor_CreateInstance( const Reference< XComponentContext > & xCtx) { - return Reference < XInterface >( ( OWeakObject * ) new OAcceptor(xCtx) ); + return Reference < XInterface >( static_cast<OWeakObject *>(new OAcceptor(xCtx)) ); } Sequence< OUString > acceptor_getSupportedServiceNames() diff --git a/io/source/connector/connector.cxx b/io/source/connector/connector.cxx index 7d5d3c321d7b..cc79077cb1b6 100644 --- a/io/source/connector/connector.cxx +++ b/io/source/connector/connector.cxx @@ -94,7 +94,7 @@ namespace stoc_connector if( pConn->m_pipe.create( aName.pData, osl_Pipe_OPEN, osl::Security() ) ) { - r = Reference < XConnection > ( (XConnection * ) pConn ); + r = Reference < XConnection > ( static_cast<XConnection *>(pConn) ); } else { @@ -141,7 +141,7 @@ namespace stoc_connector sizeof( nTcpNoDelay ) , osl_Socket_LevelTcp ); } pConn->completeConnectionString(); - r = Reference< XConnection > ( (XConnection * ) pConn ); + r = Reference< XConnection > ( static_cast<XConnection *>(pConn) ); } else { @@ -204,7 +204,7 @@ namespace stoc_connector Reference< XInterface > SAL_CALL connector_CreateInstance( const Reference< XComponentContext > & xCtx) { - return Reference < XInterface >( ( OWeakObject * ) new OConnector(xCtx) ); + return Reference < XInterface >( static_cast<OWeakObject *>(new OConnector(xCtx)) ); } diff --git a/io/source/stm/odata.cxx b/io/source/stm/odata.cxx index a4b48c9ac71f..ca2bc78423fa 100644 --- a/io/source/stm/odata.cxx +++ b/io/source/stm/odata.cxx @@ -477,7 +477,7 @@ Reference< XInterface > SAL_CALL ODataInputStream_CreateInstance( throw( Exception) { ODataInputStream *p = new ODataInputStream; - return Reference< XInterface > ( (OWeakObject * ) p ); + return Reference< XInterface > ( static_cast<OWeakObject *>(p) ); } OUString ODataInputStream_getImplementationName() diff --git a/io/source/stm/omark.cxx b/io/source/stm/omark.cxx index c3d6f1e55e0c..9f1a5df600a1 100644 --- a/io/source/stm/omark.cxx +++ b/io/source/stm/omark.cxx @@ -451,7 +451,7 @@ Reference< XInterface > SAL_CALL OMarkableOutputStream_CreateInstance( { OMarkableOutputStream *p = new OMarkableOutputStream( ); - return Reference < XInterface > ( ( OWeakObject * ) p ); + return Reference < XInterface > ( static_cast<OWeakObject *>(p) ); } OUString OMarkableOutputStream_getImplementationName() @@ -966,7 +966,7 @@ Reference < XInterface > SAL_CALL OMarkableInputStream_CreateInstance( throw(Exception) { OMarkableInputStream *p = new OMarkableInputStream( ); - return Reference< XInterface > ( (OWeakObject * ) p ); + return Reference< XInterface > ( static_cast<OWeakObject *>(p) ); } OUString OMarkableInputStream_getImplementationName() diff --git a/io/source/stm/opump.cxx b/io/source/stm/opump.cxx index a45680048666..f67d19497e5f 100644 --- a/io/source/stm/opump.cxx +++ b/io/source/stm/opump.cxx @@ -263,14 +263,14 @@ void Pump::run() if( ! rInput.is() ) { - throw NotConnectedException( "no input stream set", (OWeakObject*)this ); + throw NotConnectedException( "no input stream set", static_cast<OWeakObject*>(this) ); } Sequence< sal_Int8 > aData; while( rInput->readSomeBytes( aData, 65536 ) ) { if( ! rOutput.is() ) { - throw NotConnectedException( "no output stream set", (OWeakObject*)this ); + throw NotConnectedException( "no output stream set", static_cast<OWeakObject*>(this) ); } rOutput->writeBytes( aData ); osl_yieldThread(); @@ -359,7 +359,7 @@ void Pump::removeListener( const Reference< XStreamListener >& xListener ) throw void Pump::start() throw( RuntimeException, std::exception ) { Guard< Mutex > aGuard( m_aMutex ); - m_aThread = osl_createSuspendedThread((oslWorkerFunction)Pump::static_run,this); + m_aThread = osl_createSuspendedThread(Pump::static_run,this); if( m_aThread ) { // will be released by OPump::static_run |