diff options
author | 2023-05-25 22:49:56 +0200 | |
---|---|---|
committer | 2023-05-25 22:49:56 +0200 | |
commit | fc921619e91c55d7868f90c670a609b931cbab69 (patch) | |
tree | c81d7baf22216ec36514ece6a586865a7c096ef8 | |
parent | 4a378e56cd5b2c97207169bab2365e0897436df5 (diff) | |
download | cherry-fc921619e91c55d7868f90c670a609b931cbab69.tar.gz cherry-fc921619e91c55d7868f90c670a609b931cbab69.zip |
Rename variables
-rw-r--r-- | src/widget.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/widget.c b/src/widget.c index e734cb6..fabc67d 100644 --- a/src/widget.c +++ b/src/widget.c @@ -6,14 +6,14 @@ CherryWidget * cherry_widget_new(void) { - CherryWidget *comp = malloc(sizeof(*comp)); - comp->x = 0; - comp->y = 0; - comp->components = clist_create(); - comp->draw = NULL; - comp->dimension = cherry_dimension_new(); + CherryWidget *widget = malloc(sizeof(*widget)); + widget->x = 0; + widget->y = 0; + widget->widgets = clist_create(); + widget->draw = NULL; + widget->dimension = cherry_dimension_new(); - return comp; + return widget; } CherryDimension * @@ -24,5 +24,5 @@ cherry_widget_get_dimension(CherryWidget *comp) { void cherry_widget_add_component(CherryWidget *parent, CherryWidget *child) { - clist_add(&parent->components, child); + clist_add(&parent->widgets, child); } |