summaryrefslogtreecommitdiffstats
path: root/Meter.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 /Meter.c
parente5fdb80c7d13d836ec244390976741dd99bc6535 (diff)
Mark Object pointer to _display function const
Diffstat (limited to 'Meter.c')
-rw-r--r--Meter.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Meter.c b/Meter.c
index 15be309f..c8cd19eb 100644
--- a/Meter.c
+++ b/Meter.c
@@ -92,7 +92,7 @@ void Meter_setCaption(Meter* this, const char* caption) {
this->caption = xStrdup(caption);
}
-static inline void Meter_displayBuffer(Meter* this, char* buffer, RichString* out) {
+static inline void Meter_displayBuffer(const Meter* this, const char* buffer, RichString* out) {
if (Object_displayFn(this)) {
Object_display(this, out);
} else {
@@ -428,8 +428,7 @@ static void BlankMeter_updateValues(Meter* this, char* buffer, int size) {
}
}
-static void BlankMeter_display(Object* cast, RichString* out) {
- (void) cast;
+static void BlankMeter_display(ATTR_UNUSED const Object* cast, RichString* out) {
RichString_prune(out);
}

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