From 43c745912d9d4e9ee95879568853cb08fa6f6d27 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sat, 28 Mar 2015 19:04:39 +0100 Subject: Clean up C-style casts from pointers to void Change-Id: I5f2240b6ac5210f185081bec891ad6d3f7901679 --- io/source/stm/opump.cxx | 4 ++-- io/source/stm/streamhelper.cxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'io') diff --git a/io/source/stm/opump.cxx b/io/source/stm/opump.cxx index 42e3a356cabb..22e01d9f26cb 100644 --- a/io/source/stm/opump.cxx +++ b/io/source/stm/opump.cxx @@ -242,8 +242,8 @@ void Pump::close() void Pump::static_run( void* pObject ) { osl_setThreadName("io_stm::Pump::run()"); - ((Pump*)pObject)->run(); - ((Pump*)pObject)->release(); + static_cast(pObject)->run(); + static_cast(pObject)->release(); } void Pump::run() diff --git a/io/source/stm/streamhelper.cxx b/io/source/stm/streamhelper.cxx index c305539f2162..988fb24a5c13 100644 --- a/io/source/stm/streamhelper.cxx +++ b/io/source/stm/streamhelper.cxx @@ -106,7 +106,7 @@ void MemRingBuffer::resizeBuffer( sal_Int32 nMinSize ) throw( IRingBuffer_OutOfM } if( nNewLen != m_nBufferLen ) { - m_p = ( sal_Int8 * ) rtl_reallocateMemory( m_p , nNewLen ); + m_p = static_cast(rtl_reallocateMemory( m_p , nNewLen )); if( !m_p ) { throw IRingBuffer_OutOfMemoryException(); } -- cgit