mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-11-20 21:14:29 +03:00
chore(style): normalize memory allocations
This commit is contained in:
1 parent
90403bfd29
commit
97a6a8dd91
27 files changed
+147
-279
No files matched your search
@@ -87,8 +87,8 @@ CHARCODEDESC* TEXTURECACHEROW::CreateNewDesc(GLYPHBITMAPDATA* data, uint32_t row
|
||||
this->widestFreeSlot = gapToPrevious;
|
||||
|
||||
if (gapToPrevious >= glyphWidth) {
|
||||
void* m = SMemAlloc(sizeof(CHARCODEDESC), __FILE__, __LINE__, 0);
|
||||
CHARCODEDESC* newCode = new (m) CHARCODEDESC();
|
||||
auto m = SMemAlloc(sizeof(CHARCODEDESC), __FILE__, __LINE__, 0x0);
|
||||
auto newCode = new (m) CHARCODEDESC();
|
||||
|
||||
this->glyphList.LinkNode(newCode, 2, this->glyphList.Head());
|
||||
|
||||
@@ -127,7 +127,7 @@ CHARCODEDESC* TEXTURECACHEROW::CreateNewDesc(GLYPHBITMAPDATA* data, uint32_t row
|
||||
}
|
||||
|
||||
if (gapToNext >= glyphWidth) {
|
||||
void* m = SMemAlloc(sizeof(CHARCODEDESC), __FILE__, __LINE__, 0);
|
||||
auto m = SMemAlloc(sizeof(CHARCODEDESC), __FILE__, __LINE__, 0x0);
|
||||
newCode = new (m) CHARCODEDESC();
|
||||
|
||||
this->glyphList.LinkNode(newCode, 1, code);
|
||||
|
||||
@@ -15,7 +15,7 @@ TEXTLINETEXTURE* TEXTLINETEXTURE::NewTextLineTexture() {
|
||||
// TODO
|
||||
// Allocate off of TEXTLINETEXTURE::s_freeTextLineTextures
|
||||
|
||||
void* m = SMemAlloc(sizeof(TEXTLINETEXTURE), __FILE__, __LINE__, 0x0);
|
||||
auto m = SMemAlloc(sizeof(TEXTLINETEXTURE), __FILE__, __LINE__, 0x0);
|
||||
return new (m) TEXTLINETEXTURE();
|
||||
}
|
||||
|
||||
@@ -118,7 +118,7 @@ CGxString* CGxString::GetNewString(int32_t linkOnList) {
|
||||
return string;
|
||||
}
|
||||
|
||||
void* m = SMemAlloc(sizeof(CGxString), __FILE__, __LINE__, 0x8);
|
||||
auto m = SMemAlloc(sizeof(CGxString), __FILE__, __LINE__, 0x8);
|
||||
string = new (m) CGxString();
|
||||
|
||||
if (linkOnList) {
|
||||
|
||||
Reference in new issue
Block a user