mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-13 03: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
|
|
@ -185,9 +185,8 @@ void ScrnLayerCreate(const RECTF* rect, float zorder, unsigned long flags, void*
|
|||
|
||||
const RECTF* r = rect ? rect : &defaultrect;
|
||||
|
||||
void* m = SMemAlloc(sizeof(CILayer), __FILE__, __LINE__, 0);
|
||||
|
||||
CILayer* l = new (m) CILayer();
|
||||
auto m = SMemAlloc(sizeof(CILayer), __FILE__, __LINE__, 0x0);
|
||||
auto l = new (m) CILayer();
|
||||
|
||||
l->rect.left = r->left;
|
||||
l->rect.bottom = r->bottom;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue