mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-23 04:30:09 -05:00
Next step towards enabling a managed memory version of templatefactory
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user