From 04b9ff9a8842bc23306c38f9bd1af7cd941d0eb8 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 2 Jun 2015 11:27:50 +0200 Subject: loplugin:cstylecast: deal with those that are (technically) const_cast Change-Id: Ic77431126be9259bf6381243d1ee682d687c493e --- sd/source/ui/remotecontrol/BluetoothServer.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sd/source/ui/remotecontrol') diff --git a/sd/source/ui/remotecontrol/BluetoothServer.cxx b/sd/source/ui/remotecontrol/BluetoothServer.cxx index b201d9e63d8f..51ea22c892ec 100644 --- a/sd/source/ui/remotecontrol/BluetoothServer.cxx +++ b/sd/source/ui/remotecontrol/BluetoothServer.cxx @@ -568,7 +568,7 @@ void incomingCallback( void *userRefCon, BluetoothServer* pServer = static_cast(userRefCon); - IOBluetoothRFCOMMChannel* channel = [IOBluetoothRFCOMMChannel withRFCOMMChannelRef:(IOBluetoothRFCOMMChannelRef)objectRef]; + IOBluetoothRFCOMMChannel* channel = [IOBluetoothRFCOMMChannel withRFCOMMChannelRef:reinterpret_cast(objectRef)]; OSXBluetoothWrapper* socket = new OSXBluetoothWrapper( channel); Communicator* pCommunicator = new Communicator( socket ); -- cgit