Provide a static member variable Name for all OpenSpaceModules

This commit is contained in:
Alexander Bock
2017-07-12 13:59:16 -04:00
parent 83cbe7f891
commit db9db49716
29 changed files with 42 additions and 31 deletions

View File

@@ -97,7 +97,7 @@ public:
ModuleSubClass* module() const {
auto it = std::find_if(_modules.begin(), _modules.end(),
[](const std::unique_ptr<OpenSpaceModule>& module) {
return module->name() == ModuleSubClass::name;
return module->name() == ModuleSubClass::Name;
});
if (it != _modules.end()) {
return dynamic_cast<ModuleSubClass*>(it->get());