Next step towards enabling a managed memory version of templatefactory

This commit is contained in:
Alexander Bock
2020-08-04 21:56:39 +02:00
parent a34a29c21b
commit e783807d66
26 changed files with 251 additions and 37 deletions
@@ -36,8 +36,8 @@ std::unique_ptr<Decoder> Decoder::createFromDictionary(
const std::string& type)
{
ghoul::TemplateFactory<Decoder>* factory = FactoryManager::ref().factory<Decoder>();
std::unique_ptr<Decoder> result = factory->create(type, dictionary);
return result;
Decoder* result = factory->create(type, dictionary);
return std::unique_ptr<Decoder>(result);
}
} // namespace openspace