Skip to content

Commit

Permalink
chore: format code
Browse files Browse the repository at this point in the history
  • Loading branch information
kisvegabor committed Jul 10, 2023
1 parent 223dc1c commit b1bbb95
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/extra/widgets/tabview/lv_tabview.c
Expand Up @@ -129,9 +129,9 @@ void lv_tabview_rename_tab(lv_obj_t * obj, uint32_t id, const char * new_name)
if(id >= tabview->tab_cnt) return;
if(tabview->tab_pos & LV_DIR_HOR) id *= 2;

lv_mem_free((void*)tabview->map[id]);
lv_mem_free((void *)tabview->map[id]);
tabview->map[id] = lv_mem_alloc(strlen(new_name) + 1);
strcpy((void*)tabview->map[id], new_name);
strcpy((void *)tabview->map[id], new_name);
lv_obj_invalidate(obj);
}

Expand Down Expand Up @@ -273,13 +273,13 @@ static void lv_tabview_destructor(const lv_obj_class_t * class_p, lv_obj_t * obj
uint32_t i;
if(tabview->tab_pos & LV_DIR_VER) {
for(i = 0; i < tabview->tab_cnt; i++) {
lv_mem_free((void*)tabview->map[i]);
lv_mem_free((void *)tabview->map[i]);
tabview->map[i] = NULL;
}
}
if(tabview->tab_pos & LV_DIR_HOR) {
for(i = 0; i < tabview->tab_cnt; i++) {
lv_mem_free((void*)tabview->map[i * 2]);
lv_mem_free((void *)tabview->map[i * 2]);
tabview->map[i * 2] = NULL;
}
}
Expand Down

0 comments on commit b1bbb95

Please sign in to comment.