summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-28 21:02:32 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-28 21:02:32 +0100
commitc79ea206b8b2a78488aa20e8b440806078c37537 (patch)
treef6ac987bf83ee3d7f8ca130d01de291be564c7a2 /sd
parentb2ba39927b64f56831d4d7cca85b831911930809 (diff)
loplugin:cstylecast
Change-Id: Iffcc1b4fff1293c34f8f8d4eb11465ecb0a873d7
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/remotecontrol/BluetoothServer.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/remotecontrol/BluetoothServer.cxx b/sd/source/ui/remotecontrol/BluetoothServer.cxx
index 7a2120b4e5ff..de02dbdbfbe5 100644
--- a/sd/source/ui/remotecontrol/BluetoothServer.cxx
+++ b/sd/source/ui/remotecontrol/BluetoothServer.cxx
@@ -512,7 +512,7 @@ sal_Int32 OSXBluetoothWrapper::write( const void* pBuffer, sal_uInt32 n )
{
SAL_INFO( "sdremote.bluetooth", "OSXBluetoothWrapper::write(" << pBuffer << ", " << n << ") mpChannel=" << mpChannel );
- char* ptr = (char*)pBuffer;
+ char const * ptr = static_cast<char const *>(pBuffer);
sal_uInt32 nBytesWritten = 0;
if (mpChannel == nil)
@@ -522,7 +522,7 @@ sal_Int32 OSXBluetoothWrapper::write( const void* pBuffer, sal_uInt32 n )
{
int toWrite = n - nBytesWritten;
toWrite = toWrite <= mnMTU ? toWrite : mnMTU;
- if ( [mpChannel writeSync:ptr length:toWrite] != kIOReturnSuccess )
+ if ( [mpChannel writeSync:const_cast<char *>(ptr) length:toWrite] != kIOReturnSuccess )
{
SAL_INFO( "sdremote.bluetooth", " [mpChannel writeSync:" << (void *) ptr << " length:" << toWrite << "] returned error, total written " << nBytesWritten );
return nBytesWritten;
@@ -544,7 +544,7 @@ void OSXBluetoothWrapper::appendData(void* pBuffer, size_t len)
::osl::MutexGuard aQueueGuard( mMutex );
SAL_INFO( "sdremote.bluetooth", "OSXBluetoothWrapper::appendData: entered mutex" );
mBuffer.insert(mBuffer.begin()+mBuffer.size(),
- (char*)pBuffer, (char *)pBuffer+len);
+ static_cast<char*>(pBuffer), static_cast<char *>(pBuffer)+len);
SAL_INFO( "sdremote.bluetooth", " setting mHaveBytes" );
mHaveBytes.set();
SAL_INFO( "sdremote.bluetooth", " leaving mutex" );
@@ -566,7 +566,7 @@ void incomingCallback( void *userRefCon,
SAL_INFO( "sdremote.bluetooth", "incomingCallback()" );
- BluetoothServer* pServer = (BluetoothServer*)userRefCon;
+ BluetoothServer* pServer = static_cast<BluetoothServer*>(userRefCon);
IOBluetoothRFCOMMChannel* channel = [IOBluetoothRFCOMMChannel withRFCOMMChannelRef:(IOBluetoothRFCOMMChannelRef)objectRef];