Don't need to use new, make_unique<> can do what we need here.

This commit is contained in:
Daniel Patterson 2016-11-14 14:09:04 -08:00
parent e2e5eb0169
commit 97244557b1

View File

@ -38,7 +38,7 @@ class InternalDataFacade final : public BigRAMBlockDataFacadeBase
storage.LoadLayout(internal_layout.get()); storage.LoadLayout(internal_layout.get());
// Allocate the memory block, then load data from files into it // Allocate the memory block, then load data from files into it
internal_memory.reset(new char[internal_layout->GetSizeOfLayout()]); internal_memory = std::make_unique<char[]>(internal_layout->GetSizeOfLayout());
storage.LoadData(internal_layout.get(), internal_memory.get()); storage.LoadData(internal_layout.get(), internal_memory.get());
// Adjust all the private m_* members to point to the right places // Adjust all the private m_* members to point to the right places