ui/common/types.c

branch
newapi
changeset 325
99a93a9250c4
parent 251
22dc0b739dd8
--- a/ui/common/types.c	Sun Oct 06 12:00:31 2024 +0200
+++ b/ui/common/types.c	Sun Oct 06 12:08:40 2024 +0200
@@ -139,7 +139,7 @@
 }
 
 int ui_list_count(UiList *list) {
-    return ((CxList*)list->data)->size;
+    return cxListSize(list->data);
 }
 
 void ui_list_append(UiList *list, void *data) {
@@ -192,7 +192,7 @@
     
     va_end(ap);
     
-    size_t len = cols->size;
+    size_t len = cxListSize(cols);
     info->columns = len;
     info->types = ui_calloc(ctx, len, sizeof(UiModelType));
     info->titles = ui_calloc(ctx, len, sizeof(char*));

mercurial