summaryrefslogtreecommitdiffstats
path: root/AffinityPanel.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-10-06 12:28:11 +0200
committercgzones <cgzones@googlemail.com>2020-10-10 11:25:19 +0200
commit79ad39c718bfb2973d610c2d039a5024354e602f (patch)
treeefac0bfaf60cc44a5a2b2a8c8db251cbacf5ebab /AffinityPanel.c
parente5fdb80c7d13d836ec244390976741dd99bc6535 (diff)
Mark Object pointer to _display function const
Diffstat (limited to 'AffinityPanel.c')
-rw-r--r--AffinityPanel.c4
1 files changed, 2 insertions, 2 deletions
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)

© 2014-2024 Faster IT GmbH | imprint | privacy policy