From 79ad39c718bfb2973d610c2d039a5024354e602f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Tue, 6 Oct 2020 12:28:11 +0200 Subject: Mark Object pointer to _display function const --- AffinityPanel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'AffinityPanel.c') diff --git a/AffinityPanel.c b/AffinityPanel.c index 127623c6..0cddd079 100644 --- a/AffinityPanel.c +++ b/AffinityPanel.c @@ -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) -- cgit v1.2.3