mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-11-22 05:54:29 +03:00
fix(whoa): update thunderbrew to use the refactored squall error/validation and bc allocation macros
This commit is contained in:
1 parent
1aeacd0d2e
commit
46843880ef
66 files changed
+459
-457
No files matched your search
@@ -22,5 +22,6 @@ target_link_libraries(glue
|
||||
ui
|
||||
util
|
||||
PUBLIC
|
||||
bc
|
||||
storm
|
||||
)
|
||||
@@ -2,8 +2,7 @@
|
||||
#include "client/ClientServices.hpp"
|
||||
#include "db/Db.hpp"
|
||||
#include "ui/FrameScript.hpp"
|
||||
#include <new>
|
||||
#include <storm/Memory.hpp>
|
||||
#include <bc/Memory.hpp>
|
||||
#include <storm/String.hpp>
|
||||
|
||||
float CRealmList::s_avgLoad;
|
||||
@@ -15,8 +14,7 @@ void CRealmList::Initialize() {
|
||||
CRealmList::s_categories.SetCount(g_cfg_CategoriesDB.GetNumRecords());
|
||||
|
||||
for (int32_t i = 0; i < g_cfg_CategoriesDB.GetNumRecords(); i++) {
|
||||
auto m = SMemAlloc(sizeof(RealmCategory), __FILE__, __LINE__, 0x0);
|
||||
auto category = new (m) RealmCategory();
|
||||
auto category = NEW(RealmCategory);
|
||||
|
||||
CRealmList::s_categories[i] = category;
|
||||
CRealmList::s_categories[i]->m_category = g_cfg_CategoriesDB.GetRecordByIndex(i);
|
||||
|
||||
Reference in new issue
Block a user