mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-13 11:32: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
|
|
@ -15,13 +15,8 @@ int32_t CSimpleFont::s_metatable;
|
|||
int32_t CSimpleFont::s_objectType;
|
||||
|
||||
SIMPLEFONT::SIMPLEFONT() : TSHashObject<SIMPLEFONT, HASHKEY_STRI>() {
|
||||
void* m = SMemAlloc(sizeof(CSimpleFont), __FILE__, __LINE__, 0);
|
||||
|
||||
if (m) {
|
||||
this->font = new (m) CSimpleFont();
|
||||
} else {
|
||||
this->font = nullptr;
|
||||
}
|
||||
auto m = SMemAlloc(sizeof(CSimpleFont), __FILE__, __LINE__, 0x0);
|
||||
this->font = new (m) CSimpleFont();
|
||||
}
|
||||
|
||||
void CSimpleFont::CreateScriptMetaTable() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue