Adapt to new auto coding style

This commit is contained in:
Alexander Bock
2022-02-10 15:20:21 +01:00
parent 0e49606706
commit 30212b6768
58 changed files with 446 additions and 404 deletions

View File

@@ -48,7 +48,8 @@ std::unique_ptr<PlanetGeometry> PlanetGeometry::createFromDictionary(
{
const Parameters p = codegen::bake<Parameters>(dictionary);
auto factory = FactoryManager::ref().factory<PlanetGeometry>();
ghoul::TemplateFactory<PlanetGeometry>* factory =
FactoryManager::ref().factory<PlanetGeometry>();
PlanetGeometry* result = factory->create(p.type, dictionary);
return std::unique_ptr<PlanetGeometry>(result);