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
|
|
@ -8,15 +8,9 @@ int32_t CSimpleModelFFX::s_metatable;
|
|||
|
||||
CSimpleFrame* CSimpleModelFFX::Create(CSimpleFrame* parent) {
|
||||
// TODO
|
||||
// void* m = CDataAllocator::GetData(CSimpleModelFFX::s_simpleModelFFXHeap, 0, __FILE__, __LINE__);
|
||||
|
||||
void* m = SMemAlloc(sizeof(CSimpleModelFFX), __FILE__, __LINE__, 0);
|
||||
|
||||
if (m) {
|
||||
return new (m) CSimpleModelFFX(parent);
|
||||
} else {
|
||||
return nullptr;
|
||||
}
|
||||
// auto m = CDataAllocator::GetData(CSimpleModelFFX::s_simpleModelFFXHeap, 0, __FILE__, __LINE__);
|
||||
auto m = SMemAlloc(sizeof(CSimpleModelFFX), __FILE__, __LINE__, 0x0);
|
||||
return new (m) CSimpleModelFFX(parent);
|
||||
}
|
||||
|
||||
void CSimpleModelFFX::Render(void* arg) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue