mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-13 12:44:34 +03:00
InfoScreen/ProcessList: do not access Vector internals
Use wrapper function to encapsulate the Vector structure
This commit is contained in:
@ -28,7 +28,7 @@ InfoScreen* InfoScreen_init(InfoScreen* this, const Process* process, FunctionBa
|
||||
}
|
||||
this->display = Panel_new(0, 1, COLS, height, Class(ListItem), false, bar);
|
||||
this->inc = IncSet_new(bar);
|
||||
this->lines = Vector_new(this->display->items->type, true, DEFAULT_SIZE);
|
||||
this->lines = Vector_new(Vector_type(this->display->items), true, DEFAULT_SIZE);
|
||||
Panel_setHeader(this->display, panelHeader);
|
||||
return this;
|
||||
}
|
||||
|
Reference in New Issue
Block a user