summaryrefslogtreecommitdiff
path: root/vcl/source/helper/xconnection.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/helper/xconnection.cxx')
-rw-r--r--vcl/source/helper/xconnection.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/helper/xconnection.cxx b/vcl/source/helper/xconnection.cxx
index 6c86f8327c95..5b64d8624d2c 100644
--- a/vcl/source/helper/xconnection.cxx
+++ b/vcl/source/helper/xconnection.cxx
@@ -36,10 +36,10 @@ DisplayConnection::DisplayConnection()
switch( eType )
{
case SalInstance::AsciiCString:
- m_aAny <<= OUString::createFromAscii( (sal_Char*)pBytes );
+ m_aAny <<= OUString::createFromAscii( static_cast<sal_Char*>(pBytes) );
break;
case SalInstance::Blob:
- m_aAny <<= Sequence< sal_Int8 >( (sal_Int8*)pBytes, nBytes );
+ m_aAny <<= Sequence< sal_Int8 >( static_cast<sal_Int8*>(pBytes), nBytes );
break;
}
}
@@ -110,7 +110,7 @@ bool DisplayConnection::dispatchEvent( void* pData, int nBytes )
{
SolarMutexReleaser aRel;
- Sequence< sal_Int8 > aSeq( (sal_Int8*)pData, nBytes );
+ Sequence< sal_Int8 > aSeq( static_cast<sal_Int8*>(pData), nBytes );
Any aEvent;
aEvent <<= aSeq;
::std::list< css::uno::Reference< XEventHandler > > handlers;
@@ -128,7 +128,7 @@ bool DisplayConnection::dispatchErrorEvent( void* pData, int nBytes )
{
SolarMutexReleaser aRel;
- Sequence< sal_Int8 > aSeq( (sal_Int8*)pData, nBytes );
+ Sequence< sal_Int8 > aSeq( static_cast<sal_Int8*>(pData), nBytes );
Any aEvent;
aEvent <<= aSeq;
::std::list< css::uno::Reference< XEventHandler > > handlers;