ui/common/types.c

changeset 1016
ccde46662db7
parent 971
0224108bd8c2
--- a/ui/common/types.c	Wed Dec 17 18:31:20 2025 +0100
+++ b/ui/common/types.c	Thu Dec 18 17:50:15 2025 +0100
@@ -100,7 +100,7 @@
 /* --------------------------- UiList --------------------------- */
 
 void uic_ucx_list_init(UiContext *ctx, UiList *list, void *unused) {
-    list->data = cxArrayListCreate(ctx->mp->allocator, NULL, CX_STORE_POINTERS, 32);
+    list->data = cxArrayListCreate(ctx->mp->allocator, CX_STORE_POINTERS, 32);
     list->first = ui_list_first;
     list->next = ui_list_next;
     list->get = ui_list_get;
@@ -217,7 +217,7 @@
     va_list ap;
     va_start(ap, ctx);
     
-    CxList *cols = cxArrayListCreate(cxDefaultAllocator, NULL, sizeof(UiColumn), 32);
+    CxList *cols = cxArrayListCreate(cxDefaultAllocator, sizeof(UiColumn), 32);
     int type;
     while((type = va_arg(ap, int)) != -1) {
         char *name = va_arg(ap, char*);

mercurial