chore: update all usages of memory manager allocation

This commit is contained in:
Jan
2024-04-22 21:21:31 +02:00
parent 0845cccd12
commit a3acba8bc0
51 changed files with 149 additions and 211 deletions

View File

@ -48,7 +48,7 @@ namespace string_table
if (cellCount)
{
stringTable->values = static_cast<CellType*>(memory.Alloc(sizeof(CellType) * cellCount));
stringTable->values = memory.Alloc<CellType>(cellCount);
for (auto row = 0u; row < csvLines.size(); row++)
{
@ -129,7 +129,7 @@ namespace string_table
return;
}
stringTable->cellIndex = static_cast<int16_t*>(memory.Alloc(sizeof(int16_t) * cellCount));
stringTable->cellIndex = memory.Alloc<int16_t>(cellCount);
for (auto i = 0u; i < cellCount; i++)
stringTable->cellIndex[i] = i;