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
@@ -78,7 +78,11 @@ std::unique_ptr<TileProvider> TileProvider::createFromDictionary(
ZoneScoped
const char* type = layergroupid::LAYER_TYPE_NAMES[static_cast<int>(layerTypeID)];
auto factory = FactoryManager::ref().factory<TileProvider>();
ghoul::TemplateFactory<TileProvider>* factory =
FactoryManager::ref().factory<TileProvider>();
ghoul_assert(factory, "TileProvider factory not created");
TileProvider* result = factory->create(type, dictionary);
return std::unique_ptr<TileProvider>(result);
}