btdrv-mitm: make use of auto

This commit is contained in:
ndeadly 2020-07-01 15:29:09 +02:00
parent 85aed3aa4a
commit dda42962e2
3 changed files with 4 additions and 3 deletions

View file

@ -125,7 +125,7 @@ namespace ams::bluetooth::core {
*type = g_currentEventType;
std::memcpy(buffer, g_eventDataBuffer, size);
BluetoothEventData *eventData = reinterpret_cast<BluetoothEventData *>(buffer);
auto eventData = reinterpret_cast<BluetoothEventData *>(buffer);
if (program_id == ncm::SystemProgramId::Btm) {

View file

@ -106,7 +106,8 @@ namespace ams::bluetooth::hid {
//os::TimedWaitEvent(&g_dataReadEvent, TimeSpan::FromMilliSeconds(500));
}
HidEventData *eventData = reinterpret_cast<HidEventData *>(g_eventDataBuffer);
auto eventData = reinterpret_cast<HidEventData *>(g_eventDataBuffer);
switch (g_currentEventType) {
case HidEvent_ConnectionState:

View file

@ -155,7 +155,7 @@ namespace ams::bluetooth::hid::report {
*type = g_currentEventType;
if (g_currentEventType == HidEvent_GetReport) {
HidEventData *eventData = reinterpret_cast<HidEventData *>(g_eventDataBuffer);
auto eventData = reinterpret_cast<HidEventData *>(g_eventDataBuffer);
auto controller = ams::mitm::btdrv::locateController(&eventData->getReport.address);
if (controller && !controller->isSwitchController()) {