mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-11 07:18:11 -05:00
refactor: make memory from zone a reference instead of ptr
This commit is contained in:
@ -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)
|
||||
{
|
||||
}
|
||||
|
@ -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)
|
||||
|
Reference in New Issue
Block a user