mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-03-03 10:58:34 -06:00
Simplify the function signature of the FactoryManager function
This commit is contained in:
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user