diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-10-04 17:55:08 +0200 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2020-10-07 13:01:53 +0200 |
commit | 08d85e61435e43ade490ecef16437f93c0d88bed (patch) | |
tree | fd7357e4a53f7786b5001ef128ffa8e473570f00 /Panel.c | |
parent | 164051354f11c0426e09e4fa09feeca7de92e619 (diff) |
Mark Object classes and Object class fields const
Diffstat (limited to 'Panel.c')
-rw-r--r-- | Panel.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -27,7 +27,7 @@ PanelClass Panel_class = { .eventHandler = Panel_selectByTyping, }; -Panel* Panel_new(int x, int y, int w, int h, bool owner, ObjectClass* type, FunctionBar* fuBar) { +Panel* Panel_new(int x, int y, int w, int h, bool owner, const ObjectClass* type, FunctionBar* fuBar) { Panel* this; this = xMalloc(sizeof(Panel)); Object_setClass(this, Class(Panel)); @@ -41,7 +41,7 @@ void Panel_delete(Object* cast) { free(this); } -void Panel_init(Panel* this, int x, int y, int w, int h, ObjectClass* type, bool owner, FunctionBar* fuBar) { +void Panel_init(Panel* this, int x, int y, int w, int h, const ObjectClass* type, bool owner, FunctionBar* fuBar) { this->x = x; this->y = y; this->w = w; |