ui/server/container.c

changeset 1033
eda1ff20cb27
parent 991
ab3125bd8b5f
--- a/ui/server/container.c	Sun Dec 28 19:01:05 2025 +0100
+++ b/ui/server/container.c	Mon Dec 29 17:46:10 2025 +0100
@@ -55,7 +55,7 @@
 
 cxmutstr ui_container_args_to_string(UiContext *ctx, UiContainerArgs *args) {
     CxBuffer buf;
-    cxBufferInit(&buf, NULL, 256, ctx->allocator, CX_BUFFER_AUTO_EXTEND | CX_BUFFER_FREE_CONTENTS);
+    cxBufferInit(&buf, ctx->allocator, NULL, 256, CX_BUFFER_AUTO_EXTEND | CX_BUFFER_FREE_CONTENTS);
     
     cxBufferPutString(&buf, "{");
     
@@ -79,7 +79,7 @@
     widget->obj = obj->widget->obj;
     widget->type = cx_str(type);
     widget->args = ui_container_args_to_string(obj->ctx, args);
-    widget->children = cxLinkedListCreate(a, NULL, CX_STORE_POINTERS);
+    widget->children = cxLinkedListCreate(a, CX_STORE_POINTERS);
     widget->serialize = ui_container_serialize;
     
     UiWidget *parent = obj->container_end->container;
@@ -109,7 +109,7 @@
 
 cxmutstr ui_container_serialize(UiWidget *w) {
     CxBuffer buf;
-    cxBufferInit(&buf, NULL, 1024, NULL, CX_BUFFER_AUTO_EXTEND | CX_BUFFER_FREE_CONTENTS);
+    cxBufferInit(&buf, cxDefaultAllocator, NULL, 1024, CX_BUFFER_AUTO_EXTEND | CX_BUFFER_FREE_CONTENTS);
     
     cxBufferPutString(&buf, "{");
     ui_serialize_type_obj_id(w, &buf);

mercurial