Simplify the function signature of the FactoryManager function

This commit is contained in:
Alexander Bock
2022-02-12 00:55:15 +01:00
parent 44655e5faa
commit 40ed640bc8
8 changed files with 29 additions and 66 deletions
@@ -289,10 +289,7 @@ void GlobeBrowsingModule::internalInitialize(const ghoul::Dictionary& dict) {
ghoul_assert(fRotation, "Rotation factory was not created");
fRotation->registerClass<globebrowsing::GlobeRotation>("GlobeRotation");
FactoryManager::ref().addFactory(
std::make_unique<ghoul::TemplateFactory<TileProvider>>(),
_factoryName
);
FactoryManager::ref().addFactory<TileProvider>(_factoryName);
ghoul::TemplateFactory<TileProvider>* fTileProvider =
FactoryManager::ref().factory<TileProvider>();