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 --- SwapMeter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'SwapMeter.c') diff --git a/SwapMeter.c b/SwapMeter.c index e754bbe6..fc4e6b28 100644 --- a/SwapMeter.c +++ b/SwapMeter.c @@ -34,9 +34,9 @@ static void SwapMeter_updateValues(Meter* this, char* buffer, int size) { } } -static void SwapMeter_display(Object* cast, RichString* out) { +static void SwapMeter_display(const Object* cast, RichString* out) { char buffer[50]; - Meter* this = (Meter*)cast; + const Meter* this = (const Meter*)cast; RichString_write(out, CRT_colors[METER_TEXT], ":"); Meter_humanUnit(buffer, this->total, 50); RichString_append(out, CRT_colors[METER_VALUE], buffer); -- cgit v1.2.3