diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-10-24 12:16:55 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-10-24 12:18:46 -0400 |
commit | 2f4a8cf69394d4c6442381297136662af923f577 (patch) | |
tree | 0d57b06a89af4a749c6a7c1902e5445b4c511b65 /libs | |
parent | 65036cf3eb5353503938689acc0b3a39e55c1f35 (diff) |
avoid const cast warning
Diffstat (limited to 'libs')
-rw-r--r-- | libs/surfaces/wiimote/wiimote.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/surfaces/wiimote/wiimote.cc b/libs/surfaces/wiimote/wiimote.cc index 963bf90df7..124cf6c349 100644 --- a/libs/surfaces/wiimote/wiimote.cc +++ b/libs/surfaces/wiimote/wiimote.cc @@ -449,7 +449,7 @@ wiimote_control_protocol_mesg_callback (cwiid_wiimote_t *wiimote, int mesg_count { DEBUG_TRACE (DEBUG::WiimoteControl, "WiimoteControlProtocol::mesg_callback init\n"); - WiimoteControlProtocol *protocol = (WiimoteControlProtocol *)cwiid_get_data (wiimote); + WiimoteControlProtocol *protocol = reinterpret_cast<WiimoteControlProtocol*> (const_cast<void*>(cwiid_get_data (wiimote))); if (protocol) { protocol->wiimote_callback (mesg_count, mesg); |