chore: IKeyState, use auto where possible

This commit is contained in:
sithlord48
2025-04-27 12:41:32 -04:00
committed by Nick Bolton
parent 8123166e66
commit ee3dffc4f8

View File

@ -25,7 +25,7 @@ IKeyState::IKeyState(IEventQueue *events)
IKeyState::KeyInfo *IKeyState::KeyInfo::alloc(KeyID id, KeyModifierMask mask, KeyButton button, int32_t count)
{
KeyInfo *info = (KeyInfo *)malloc(sizeof(KeyInfo));
auto *info = (KeyInfo *)malloc(sizeof(KeyInfo));
info->m_key = id;
info->m_mask = mask;
info->m_button = button;
@ -43,7 +43,7 @@ IKeyState::KeyInfo *IKeyState::KeyInfo::alloc(
const char *buffer = screens.c_str();
// build structure
KeyInfo *info = (KeyInfo *)malloc(sizeof(KeyInfo) + screens.size());
auto *info = (KeyInfo *)malloc(sizeof(KeyInfo) + screens.size());
info->m_key = id;
info->m_mask = mask;
info->m_button = button;