mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-13 19:42:29 +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
|
|
@ -80,8 +80,8 @@ void CFrameStrata::AddFrame(CSimpleFrame* frame) {
|
|||
this->levels.SetCount(frame->m_level + 1);
|
||||
|
||||
for (int32_t i = count; i < frame->m_level + 1; i++) {
|
||||
void* m = SMemAlloc(sizeof(CFrameStrataNode), __FILE__, __LINE__, 0);
|
||||
CFrameStrataNode* node = m ? new (m) CFrameStrataNode() : nullptr;
|
||||
auto m = SMemAlloc(sizeof(CFrameStrataNode), __FILE__, __LINE__, 0x0);
|
||||
auto node = new (m) CFrameStrataNode();
|
||||
this->levels[i] = node;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue