Mark ScreenDefaults const

This commit is contained in:
Christian Göttsche
2021-12-16 15:40:50 +01:00
committed by cgzones
parent 14f428a172
commit 6e9a5e9e49
17 changed files with 17 additions and 17 deletions

View File

@ -293,7 +293,7 @@ static ScreenSettings* Settings_defaultScreens(Settings* this) {
if (this->nScreens)
return this->screens[0];
for (unsigned int i = 0; i < Platform_numberOfDefaultScreens; i++) {
ScreenDefaults* defaults = &Platform_defaultScreens[i];
const ScreenDefaults* defaults = &Platform_defaultScreens[i];
ScreenSettings* settings = Settings_newScreen(this, defaults->name, defaults->columns);
settings->sortKey = toFieldIndex(this->dynamicColumns, defaults->sortKey);
}