1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

fix(slider): add const to the copy parameter in lv_slider_create

This commit is contained in:
Gabor Kiss-Vamosi 2020-11-21 21:00:48 +01:00
parent e23c2cf905
commit 0c81059272
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ static lv_signal_cb_t ancestor_signal;
* Pointer to an other slider to copy. * Pointer to an other slider to copy.
* @return pointer to the created slider * @return pointer to the created slider
*/ */
lv_obj_t * lv_slider_create(lv_obj_t * parent, lv_obj_t * copy) lv_obj_t * lv_slider_create(lv_obj_t * parent, const lv_obj_t * copy)
{ {
LV_LOG_TRACE("slider create started"); LV_LOG_TRACE("slider create started");

View File

@ -70,7 +70,7 @@ enum {
* Pointer to an other slider to copy. * Pointer to an other slider to copy.
* @return pointer to the created slider * @return pointer to the created slider
*/ */
lv_obj_t * lv_slider_create(lv_obj_t * parent, lv_obj_t * copy); lv_obj_t * lv_slider_create(lv_obj_t * parent, const lv_obj_t * copy);
/*===================== /*=====================
* Setter functions * Setter functions