diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-03-12 16:46:55 +0100 |
---|---|---|
committer | Christian Göttsche <cgzones@googlemail.com> | 2021-03-12 16:46:55 +0100 |
commit | d37d66bb3a089b9e66c6629a4855560984ac720d (patch) | |
tree | 1bc77669da335f53eff7d64687809c748a36c34c /InfoScreen.c | |
parent | 3f99c2de245e950b8004fde023e45a0dd6389381 (diff) |
InfoScreen/ProcessList: do not access Vector internals
Use wrapper function to encapsulate the Vector structure
Diffstat (limited to 'InfoScreen.c')
-rw-r--r-- | InfoScreen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/InfoScreen.c b/InfoScreen.c index 80e04837..4a1f6592 100644 --- a/InfoScreen.c +++ b/InfoScreen.c @@ -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; } |