ui/common/context.c

changeset 622
9090faa4094b
parent 557
e6415fd4af4b
child 623
1ebc781c7d17
--- a/ui/common/context.c	Sat Jun 14 11:05:57 2025 +0200
+++ b/ui/common/context.c	Sat Jun 14 11:17:17 2025 +0200
@@ -409,7 +409,7 @@
     }
 }
 
-void uic_reg_var(UiContext *ctx, char *name, UiVarType type, void *value) {
+void uic_reg_var(UiContext *ctx, const char *name, UiVarType type, void *value) {
     // TODO: do we need/want this? Why adding vars to a context after
     // widgets reference these? Workarounds:
     // 1. add vars to ctx before creating ui

mercurial