Pass-by-reference instead of pointer.

This commit is contained in:
Daniel Patterson
2016-11-14 21:44:16 -08:00
parent d8b016b92a
commit 83a9d0590d
5 changed files with 154 additions and 163 deletions
@@ -35,11 +35,11 @@ class ProcessMemoryDataFacade final : public ContiguousInternalMemoryDataFacadeB
// Calculate the layout/size of the memory block
internal_layout = std::make_unique<storage::DataLayout>();
storage.LoadLayout(internal_layout.get());
storage.PopulateLayout(*internal_layout);
// Allocate the memory block, then load data from files into it
internal_memory = std::make_unique<char[]>(internal_layout->GetSizeOfLayout());
storage.LoadData(internal_layout.get(), internal_memory.get());
storage.PopulateData(*internal_layout, internal_memory.get());
// Adjust all the private m_* members to point to the right places
Init(internal_layout.get(), internal_memory.get());