mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-13 04:34:35 +03:00
Mark ScreenDefaults const
This commit is contained in:

committed by
cgzones

parent
14f428a172
commit
6e9a5e9e49
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user