From 46b41862162b13201ff72f590d85438858ea6c12 Mon Sep 17 00:00:00 2001 From: fallstool Date: Thu, 1 Nov 2018 09:58:55 +0800 Subject: [PATCH] Update lv_list.c change the code style --- lv_objx/lv_list.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lv_objx/lv_list.c b/lv_objx/lv_list.c index 971d41ab5..4ccb5ab20 100644 --- a/lv_objx/lv_list.c +++ b/lv_objx/lv_list.c @@ -240,8 +240,7 @@ bool lv_list_remove(const lv_obj_t * list, uint32_t index) int count = 0; lv_obj_t * e = lv_list_get_next_btn(list, NULL); while(e != NULL) { - if(count == index) - { + if(count == index) { lv_obj_del(e); ext->size --; return true; @@ -479,8 +478,7 @@ int32_t lv_list_get_btn_index(const lv_obj_t * list, const lv_obj_t * btn) int index = 0; lv_obj_t * e = lv_list_get_next_btn(list, NULL); while(e != NULL) { - if(e == btn) - { + if(e == btn) { return index; } index ++;