elementary: Fix constant qualifer warning message

Gcc complains here due to _wl_default_seat_id_get not accepting a
'const' Evas_Object, so to avoid the warning just case it to a normal
Evas_Object when passing in.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2018-01-12 10:50:26 -05:00
parent 9bc5570368
commit 4dfde2cd24
1 changed files with 3 additions and 2 deletions

View File

@ -107,7 +107,8 @@ _wl_window_get(const Evas_Object *obj)
return win; return win;
} }
int _wl_default_seat_id_get(Evas_Object *obj) int
_wl_default_seat_id_get(Evas_Object *obj)
{ {
Ecore_Wl2_Window *win = _wl_window_get(obj); Ecore_Wl2_Window *win = _wl_window_get(obj);
Eo *seat, *parent2, *ewin; Eo *seat, *parent2, *ewin;
@ -211,7 +212,7 @@ elm_cnp_selection_get(const Evas_Object *obj, Elm_Sel_Type type,
if (!wdata) return EINA_FALSE; if (!wdata) return EINA_FALSE;
#ifdef HAVE_ELEMENTARY_WL2 #ifdef HAVE_ELEMENTARY_WL2
seatid = _wl_default_seat_id_get(obj); seatid = _wl_default_seat_id_get((Evas_Object *)obj);
#endif #endif
wdata->udata = udata; wdata->udata = udata;
wdata->datacb = datacb; wdata->datacb = datacb;