ui/common/object.c

changeset 935
d95e8723545c
parent 932
28fc967f74ef
--- a/ui/common/object.c	Sun Nov 23 14:52:41 2025 +0100
+++ b/ui/common/object.c	Tue Nov 25 12:10:04 2025 +0100
@@ -188,7 +188,5 @@
 
 void* ui_object_get(UiObject *obj, const char *key) {
     UiObjectPrivate *p = (UiObjectPrivate*)obj;
-    if(p->ext) {
-        return cxMapGet(p->ext, key);
-    }
+    return p->ext ? cxMapGet(p->ext, key) : NULL;
 }

mercurial