mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-15 20:32:28 +00:00
chore(style): normalize memory allocations
This commit is contained in:
parent
90403bfd29
commit
97a6a8dd91
27 changed files with 147 additions and 279 deletions
|
|
@ -49,15 +49,8 @@ void IEvtQueueRegister(EvtContext* context, EVENTID id, int32_t (*handler)(const
|
|||
|
||||
auto handlerList = &context->m_queueHandlerList[id];
|
||||
|
||||
EvtHandler* evtHandler;
|
||||
|
||||
void* m = SMemAlloc(sizeof(EvtHandler), __FILE__, __LINE__, 0x8);
|
||||
|
||||
if (m) {
|
||||
evtHandler = new (m) EvtHandler();
|
||||
} else {
|
||||
evtHandler = nullptr;
|
||||
}
|
||||
auto m = SMemAlloc(sizeof(EvtHandler), __FILE__, __LINE__, 0x8);
|
||||
auto evtHandler = new (m) EvtHandler();
|
||||
|
||||
evtHandler->priority = priority;
|
||||
evtHandler->param = param;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue