From d9ed47866a7e4bccec52793957894331a83bfaeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=92=8B=E6=85=A7=E8=B5=9F?= <42379289+cnjhb@users.noreply.github.com> Date: Fri, 12 Dec 2025 13:47:14 +0800 Subject: [PATCH] refactor(obj_property): use LV_ARRAYLEN for LV_OBJ_SET_PROPERTY_ARRAY (#9395) --- src/core/lv_obj_property.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/lv_obj_property.h b/src/core/lv_obj_property.h index 281f853984..bd3674ec43 100644 --- a/src/core/lv_obj_property.h +++ b/src/core/lv_obj_property.h @@ -58,7 +58,7 @@ extern "C" { #define LV_PROPERTY_ID_INDEX(id) ((id) & 0xfffffff) /*Set properties from an array of lv_property_t*/ -#define LV_OBJ_SET_PROPERTY_ARRAY(obj, array) lv_obj_set_properties(obj, array, sizeof(array)/sizeof(array[0])) +#define LV_OBJ_SET_PROPERTY_ARRAY(obj, array) lv_obj_set_properties(obj, array, LV_ARRAYLEN(array)) /* Helper to implement class definition of property and property names */ /* *INDENT-OFF* */