diff options
Diffstat (limited to 'io/source/stm')
-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 |
3 files changed, 6 insertions, 6 deletions
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 |