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

View File

@@ -48,10 +48,7 @@ void SpacecraftInstrumentsModule::internalInitialize(const ghoul::Dictionary&) {
ImageSequencer::initialize();
FactoryManager::ref().addFactory(
std::make_unique<ghoul::TemplateFactory<Decoder>>(),
"Decoder"
);
FactoryManager::ref().addFactory<Decoder>("Decoder");
ghoul::TemplateFactory<DashboardItem>* fDashboard =
FactoryManager::ref().factory<DashboardItem>();