refactor: make memory from zone a reference instead of ptr

This commit is contained in:
Jan
2025-05-02 11:42:17 +01:00
parent 9e940a6f53
commit 8b85cadb77
29 changed files with 78 additions and 78 deletions

View File

@ -5,7 +5,7 @@
ContentLoaderBase::ContentLoaderBase(Zone& zone)
: varXString(nullptr),
m_zone(zone),
m_memory(*zone.GetMemory()),
m_memory(zone.Memory()),
m_stream(nullptr)
{
}
@ -13,7 +13,7 @@ ContentLoaderBase::ContentLoaderBase(Zone& zone)
ContentLoaderBase::ContentLoaderBase(Zone& zone, IZoneInputStream* stream)
: varXString(nullptr),
m_zone(zone),
m_memory(*zone.GetMemory()),
m_memory(zone.Memory()),
m_stream(stream)
{
}

View File

@ -36,7 +36,7 @@ void ZoneLoader::AddXBlock(std::unique_ptr<XBlock> block)
return b1->m_index < b2->m_index;
});
m_zone->GetMemory()->AddBlock(std::move(block));
m_zone->Memory().AddBlock(std::move(block));
}
void ZoneLoader::AddLoadingStep(std::unique_ptr<ILoadingStep> step)