Skip to content

Commit

Permalink
Make the code compile successfully on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
mrQzs committed May 25, 2021
1 parent a64b27c commit 5f11f45
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions widgets/LVGLButton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ class LVGLPropertyButtonStyle : public LVGLPropertyEnum {
} break;
case 2: {
char *str = new char[7];
strcpy_s(str, 7, "Button");
strcpy(str, "Button");
lv_obj_set_style_local_value_str(obj->obj(), 0, 0, str);
lv_obj_set_style_local_outline_width(obj->obj(), 0, 0, 0);
lv_obj_set_style_local_radius(obj->obj(), 0, 0, 0);
Expand All @@ -182,7 +182,7 @@ class LVGLPropertyButtonStyle : public LVGLPropertyEnum {
} break;
case 3: {
char *str = new char[7];
strcpy_s(str, 7, "Button");
strcpy(str, "Button");
lv_obj_set_style_local_value_str(obj->obj(), 0, 0, str);
lv_obj_set_style_local_outline_width(obj->obj(), 0, 0, 0);
lv_obj_set_style_local_radius(obj->obj(), 0, 0, 8);
Expand All @@ -203,7 +203,7 @@ class LVGLPropertyButtonStyle : public LVGLPropertyEnum {
} break;
case 4: {
char *str = new char[7];
strcpy_s(str, 7, "Button");
strcpy(str, "Button");
lv_obj_set_style_local_value_str(obj->obj(), 0, 0, str);
lv_obj_set_style_local_outline_width(obj->obj(), 0, 0, 0);
lv_obj_set_size(obj->obj(), 100, 40);
Expand Down Expand Up @@ -239,7 +239,7 @@ class LVGLPropertyButtonStyle : public LVGLPropertyEnum {
} break;
case 5: {
char *str = new char[4];
strcpy_s(str, 7, "BTN");
strcpy(str, "BTN");
lv_obj_set_style_local_value_str(obj->obj(), 0, 0, str);
lv_obj_set_style_local_outline_width(obj->obj(), 0, 0, 0);
lv_obj_set_style_local_radius(obj->obj(), 0, 0, 0);
Expand All @@ -257,7 +257,7 @@ class LVGLPropertyButtonStyle : public LVGLPropertyEnum {
} break;
case 6: {
char *str = new char[4];
strcpy_s(str, 7, "BTN");
strcpy(str, "BTN");
lv_obj_set_style_local_value_str(obj->obj(), 0, 0, str);
lv_obj_set_style_local_outline_width(obj->obj(), 0, 0, 0);
lv_obj_set_style_local_radius(obj->obj(), 0, 0, 8);
Expand All @@ -278,7 +278,7 @@ class LVGLPropertyButtonStyle : public LVGLPropertyEnum {
} break;
case 7: {
char *str = new char[4];
strcpy_s(str, 7, "BTN");
strcpy(str, "BTN");
lv_obj_set_style_local_value_str(obj->obj(), 0, 0, str);
lv_obj_set_style_local_outline_width(obj->obj(), 0, 0, 0);
lv_obj_set_size(obj->obj(), 50, 50);
Expand Down

0 comments on commit 5f11f45

Please sign in to comment.