mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-20 13:04:55 +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
@@ -248,15 +248,8 @@ void CGlueMgr::Resume() {
|
||||
CoordinateSetAspectRatio(CGlueMgr::m_aspect);
|
||||
|
||||
// Create CSimpleTop
|
||||
CSimpleTop* top;
|
||||
|
||||
void* m = SMemAlloc(sizeof(CSimpleTop), __FILE__, __LINE__, 0);
|
||||
|
||||
if (m) {
|
||||
top = new (m) CSimpleTop();
|
||||
} else {
|
||||
top = nullptr;
|
||||
}
|
||||
auto m = SMemAlloc(sizeof(CSimpleTop), __FILE__, __LINE__, 0x0);
|
||||
auto top = new (m) CSimpleTop();
|
||||
|
||||
CGlueMgr::m_simpleTop = top;
|
||||
CGlueMgr::m_simpleTop->m_displaySizeCallback = &CGlueMgr::HandleDisplaySizeChanged;
|
||||
|
||||
Reference in new issue
Block a user