mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-11-11 08:53:14 +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
@@ -36,8 +36,8 @@ CM2Shared* CM2Cache::CreateShared(const char* path, uint32_t flags) {
|
||||
SFile* fileptr;
|
||||
|
||||
if (SFile::OpenEx(nullptr, convertedPath, (flags >> 2) & 1, &fileptr)) {
|
||||
void* m = SMemAlloc(sizeof(CM2Shared), __FILE__, __LINE__, 0x0);
|
||||
CM2Shared* shared = new (m) CM2Shared(this);
|
||||
auto m = SMemAlloc(sizeof(CM2Shared), __FILE__, __LINE__, 0x0);
|
||||
auto shared = new (m) CM2Shared(this);
|
||||
|
||||
if (shared->Load(fileptr, flags & 0x4, &v28)) {
|
||||
strcpy(shared->m_filePath, convertedPath);
|
||||
|
||||
@@ -116,7 +116,7 @@ int32_t M2ConvertModelFileName(const char* source, char* dest, uint32_t a3, uint
|
||||
}
|
||||
|
||||
CM2Scene* M2CreateScene() {
|
||||
void* m = SMemAlloc(sizeof(CM2Scene), __FILE__, __LINE__, 0x0);
|
||||
auto m = SMemAlloc(sizeof(CM2Scene), __FILE__, __LINE__, 0x0);
|
||||
return new (m) CM2Scene(&CM2Cache::s_cache);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user