[FL-2811] Fix PVS-Studio warnings (#2142)
Co-authored-by: あく <alleteam@gmail.com> Co-authored-by: gornekich <n.gorbadey@gmail.com>
This commit is contained in:
@@ -60,7 +60,7 @@ WidgetElement* widget_element_button_create(
|
||||
ButtonCallback callback,
|
||||
void* context) {
|
||||
// Allocate and init model
|
||||
GuiButtonModel* model = malloc(sizeof(GuiButtonModel)); //-V773
|
||||
GuiButtonModel* model = malloc(sizeof(GuiButtonModel));
|
||||
model->button_type = button_type;
|
||||
model->callback = callback;
|
||||
model->context = context;
|
||||
@@ -75,4 +75,4 @@ WidgetElement* widget_element_button_create(
|
||||
gui_button->model = model;
|
||||
|
||||
return gui_button;
|
||||
}
|
||||
} //-V773
|
||||
|
@@ -62,4 +62,4 @@ WidgetElement* widget_element_string_create(
|
||||
gui_string->model = model;
|
||||
|
||||
return gui_string;
|
||||
}
|
||||
} //-V773
|
||||
|
@@ -63,4 +63,4 @@ WidgetElement* widget_element_string_multiline_create(
|
||||
gui_string->model = model;
|
||||
|
||||
return gui_string;
|
||||
}
|
||||
} //-V773
|
||||
|
@@ -71,4 +71,4 @@ WidgetElement* widget_element_text_box_create(
|
||||
gui_string->model = model;
|
||||
|
||||
return gui_string;
|
||||
}
|
||||
} //-V773
|
||||
|
@@ -241,4 +241,4 @@ WidgetElement* widget_element_text_scroll_create(
|
||||
text_scroll->model_mutex = furi_mutex_alloc(FuriMutexTypeNormal);
|
||||
|
||||
return text_scroll;
|
||||
}
|
||||
} //-V773
|
||||
|
Reference in New Issue
Block a user