Moving over more allocations to the memory pool

This commit is contained in:
Alexander Bock
2020-08-05 11:19:09 +02:00
parent 25247c7a37
commit 696bc31861
20 changed files with 51 additions and 54 deletions

View File

@@ -100,7 +100,7 @@ documentation::Documentation Renderable::Documentation() {
};
}
std::unique_ptr<Renderable> Renderable::createFromDictionary(
ghoul::mm_unique_ptr<Renderable> Renderable::createFromDictionary(
const ghoul::Dictionary& dictionary)
{
documentation::testSpecificationAndThrow(Documentation(), dictionary, "Renderable");
@@ -111,10 +111,10 @@ std::unique_ptr<Renderable> Renderable::createFromDictionary(
ghoul_assert(factory, "Renderable factory did not exist");
Renderable* result = factory->create(
renderableType,
dictionary/*,
&global::memoryManager.PersistentMemory*/
dictionary,
&global::memoryManager.PersistentMemory
);
return std::unique_ptr<Renderable>(result);
return ghoul::mm_unique_ptr<Renderable>(result);
}