summaryrefslogtreecommitdiff
path: root/sd/source/ui/remotecontrol
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-28 19:06:19 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-28 19:09:25 +0100
commit51ec44fe04de4cad43a6bbd8dae4411a763c1e7e (patch)
treea1cd4bde7d2e1888ecb2287a9060aa7d045f44ef /sd/source/ui/remotecontrol
parent8dee9e90f76b5b0906520f4eccde7ae4897c1c41 (diff)
Clean up C-style casts from pointers to void
Change-Id: I57277cd1356a99ee7c806d84a9446936d13a87c0
Diffstat (limited to 'sd/source/ui/remotecontrol')
-rw-r--r--sd/source/ui/remotecontrol/BluetoothServer.cxx2
-rw-r--r--sd/source/ui/remotecontrol/BufferedStreamSocket.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/remotecontrol/BluetoothServer.cxx b/sd/source/ui/remotecontrol/BluetoothServer.cxx
index 648b60bb30b6..7a2120b4e5ff 100644
--- a/sd/source/ui/remotecontrol/BluetoothServer.cxx
+++ b/sd/source/ui/remotecontrol/BluetoothServer.cxx
@@ -930,7 +930,7 @@ DBusHandlerResult ProfileMessageFunction
int nDescriptor;
dbus_message_iter_get_basic(&it, &nDescriptor);
- std::vector<Communicator*>* pCommunicators = (std::vector<Communicator*>*) user_data;
+ std::vector<Communicator*>* pCommunicators = static_cast<std::vector<Communicator*>*>(user_data);
// Bluez gives us non-blocking sockets, but our code relies
// on blocking behaviour.
diff --git a/sd/source/ui/remotecontrol/BufferedStreamSocket.cxx b/sd/source/ui/remotecontrol/BufferedStreamSocket.cxx
index 7633283f3237..9b756fe76012 100644
--- a/sd/source/ui/remotecontrol/BufferedStreamSocket.cxx
+++ b/sd/source/ui/remotecontrol/BufferedStreamSocket.cxx
@@ -56,7 +56,7 @@ sal_Int32 BufferedStreamSocket::write( const void* pBuffer, sal_uInt32 n )
if ( !usingCSocket )
return StreamSocket::write( pBuffer, n );
else
- return ::send( mSocket, (const char *) pBuffer, (size_t) n, 0 );
+ return ::send( mSocket, pBuffer, (size_t) n, 0 );
}
void BufferedStreamSocket::close()