summaryrefslogtreecommitdiffstats
path: root/InfoScreen.h
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-10-04 17:55:08 +0200
committercgzones <cgzones@googlemail.com>2020-10-07 13:01:53 +0200
commit08d85e61435e43ade490ecef16437f93c0d88bed (patch)
treefd7357e4a53f7786b5001ef128ffa8e473570f00 /InfoScreen.h
parent164051354f11c0426e09e4fa09feeca7de92e619 (diff)
Mark Object classes and Object class fields const
Diffstat (limited to 'InfoScreen.h')
-rw-r--r--InfoScreen.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/InfoScreen.h b/InfoScreen.h
index 196c56e1..e5c58461 100644
--- a/InfoScreen.h
+++ b/InfoScreen.h
@@ -14,14 +14,14 @@ typedef void(*InfoScreen_OnErr)(InfoScreen*);
typedef bool(*InfoScreen_OnKey)(InfoScreen*, int);
typedef struct InfoScreenClass_ {
- ObjectClass super;
+ const ObjectClass super;
const InfoScreen_Scan scan;
const InfoScreen_Draw draw;
const InfoScreen_OnErr onErr;
const InfoScreen_OnKey onKey;
} InfoScreenClass;
-#define As_InfoScreen(this_) ((InfoScreenClass*)(((InfoScreen*)(this_))->super.klass))
+#define As_InfoScreen(this_) ((const InfoScreenClass*)(((InfoScreen*)(this_))->super.klass))
#define InfoScreen_scan(this_) As_InfoScreen(this_)->scan((InfoScreen*)(this_))
#define InfoScreen_draw(this_) As_InfoScreen(this_)->draw((InfoScreen*)(this_))
#define InfoScreen_onErr(this_) As_InfoScreen(this_)->onErr((InfoScreen*)(this_))

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