Cleanup code with designated initializer lists

This commit is contained in:
Alexander Bock
2023-01-22 23:01:32 +01:00
parent 3c6fc51ac2
commit d52c5dd0d9
69 changed files with 532 additions and 411 deletions

View File

@@ -171,7 +171,7 @@ std::vector<OpenSpaceModule*> ModuleEngine::modules() const {
}
ghoul::systemcapabilities::Version ModuleEngine::requiredOpenGLVersion() const {
ghoul::systemcapabilities::Version version = { 0, 0, 0 };
ghoul::systemcapabilities::Version version = { .major = 0, .minor = 0, .release = 0 };
for (const std::unique_ptr<OpenSpaceModule>& m : _modules) {
version = std::max(version, m->requiredOpenGLVersion());