From 5548316d3229a2af358b448e0d2ee64bd3c805ac Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 10 Jun 2018 09:04:39 -0400 Subject: [PATCH] WiimoteDevice: Remove unnecessary cast in ExecuteL2capCmd() pData is already a u8*, so a cast isn't necessary here. --- Source/Core/Core/IOS/USB/Bluetooth/WiimoteDevice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/IOS/USB/Bluetooth/WiimoteDevice.cpp b/Source/Core/Core/IOS/USB/Bluetooth/WiimoteDevice.cpp index 7225656fc5..9651221e4b 100644 --- a/Source/Core/Core/IOS/USB/Bluetooth/WiimoteDevice.cpp +++ b/Source/Core/Core/IOS/USB/Bluetooth/WiimoteDevice.cpp @@ -295,8 +295,8 @@ void WiimoteDevice::ExecuteL2capCmd(u8* _pData, u32 _Size) { DEBUG_LOG(WIIMOTE, "Wiimote_InterruptChannel"); DEBUG_LOG(WIIMOTE, " Channel ID: %04x", pHeader->dcid); - std::string Temp = ArrayToString((const u8*)pData, DataSize); - DEBUG_LOG(WIIMOTE, " Data: %s", Temp.c_str()); + const std::string temp = ArrayToString(pData, DataSize); + DEBUG_LOG(WIIMOTE, " Data: %s", temp.c_str()); Wiimote::InterruptChannel(number, pHeader->dcid, pData, DataSize); }