mirror of https://github.com/xzeldon/htop.git
Mark ProcessList_keyAt argument const
This commit is contained in:
parent
42073babb9
commit
91317322fe
|
@ -59,7 +59,7 @@ static HandlerResult MainPanel_eventHandler(Panel* super, int ch) {
|
|||
|
||||
if (EVENT_IS_HEADER_CLICK(ch)) {
|
||||
int x = EVENT_HEADER_CLICK_GET_X(ch);
|
||||
ProcessList* pl = this->state->pl;
|
||||
const ProcessList* pl = this->state->pl;
|
||||
Settings* settings = this->state->settings;
|
||||
int hx = super->scrollH + x + 1;
|
||||
ProcessField field = ProcessList_keyAt(pl, hx);
|
||||
|
|
|
@ -231,7 +231,7 @@ void ProcessList_sort(ProcessList* this) {
|
|||
}
|
||||
|
||||
|
||||
ProcessField ProcessList_keyAt(ProcessList* this, int at) {
|
||||
ProcessField ProcessList_keyAt(const ProcessList* this, int at) {
|
||||
int x = 0;
|
||||
const ProcessField* fields = this->settings->fields;
|
||||
ProcessField field;
|
||||
|
|
|
@ -95,7 +95,7 @@ int ProcessList_size(ProcessList* this);
|
|||
|
||||
void ProcessList_sort(ProcessList* this);
|
||||
|
||||
ProcessField ProcessList_keyAt(ProcessList* this, int at);
|
||||
ProcessField ProcessList_keyAt(const ProcessList* this, int at);
|
||||
|
||||
void ProcessList_expandTree(ProcessList* this);
|
||||
|
||||
|
|
Loading…
Reference in New Issue