mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-17 20:36:36 +03:00
Mark Object pointer to _display function const
This commit is contained in:

committed by
cgzones

parent
e5fdb80c7d
commit
79ad39c718
@ -44,8 +44,8 @@ static void MaskItem_delete(Object* cast) {
|
||||
free(this);
|
||||
}
|
||||
|
||||
static void MaskItem_display(Object* cast, RichString* out) {
|
||||
MaskItem* this = (MaskItem*)cast;
|
||||
static void MaskItem_display(const Object* cast, RichString* out) {
|
||||
const MaskItem* this = (const MaskItem*)cast;
|
||||
assert (this != NULL);
|
||||
RichString_append(out, CRT_colors[CHECK_BOX], "[");
|
||||
if (this->value == 2)
|
||||
|
Reference in New Issue
Block a user