forked from enlightenment/efl
elm widget - event legacy propagation - remove coverity warning
fix CID 1379920 - event_flags is actually never NULL or undefined in the function logic. it's always set to point to the specific event flags field depending on struct type or the function will return before using the pointer.
This commit is contained in:
parent
6867158eb3
commit
4a9d168ac3
|
@ -1107,13 +1107,10 @@ _propagate_event_legacy(Eo *parent, const Efl_Event *event, Eo *obj, Elm_Event_C
|
||||||
|
|
||||||
prev_flags = *event_flags;
|
prev_flags = *event_flags;
|
||||||
if (ecd->func((void *)ecd->data, parent, obj, type, event_info.any) ||
|
if (ecd->func((void *)ecd->data, parent, obj, type, event_info.any) ||
|
||||||
(event_flags && ((*event_flags) & EVAS_EVENT_FLAG_ON_HOLD)))
|
((*event_flags) & EVAS_EVENT_FLAG_ON_HOLD))
|
||||||
{
|
{
|
||||||
if (event_flags)
|
if (prev_flags != *event_flags)
|
||||||
{
|
efl_input_event_flags_set(event->info, *event_flags);
|
||||||
if (prev_flags != *event_flags)
|
|
||||||
efl_input_event_flags_set(event->info, *event_flags);
|
|
||||||
}
|
|
||||||
return EINA_TRUE;
|
return EINA_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue