forked from enlightenment/efl
elementary: Avoid passing NULL in some win focus methods
Summary: This one is rather harmless, as the NULL returned by this fuction is handled correctly in all places, but this commit removes the runtime warning. ref T7030 Test Plan: After this commit the warning disappears. Got the warning with win_example. Reviewers: zmike, bu5hm4n, devilhorns Reviewed By: devilhorns Subscribers: netstar, cedric, #committers Tags: #efl Maniphest Tasks: T7030 Differential Revision: https://phab.enlightenment.org/D6538
This commit is contained in:
parent
b14ef34ab8
commit
ee8d06c806
|
@ -2655,7 +2655,7 @@ _elm_win_focus_target_get(Evas_Object *obj)
|
|||
{
|
||||
Evas_Object *o = obj;
|
||||
|
||||
do
|
||||
while (o)
|
||||
{
|
||||
if (elm_widget_is(o))
|
||||
{
|
||||
|
@ -2664,7 +2664,6 @@ _elm_win_focus_target_get(Evas_Object *obj)
|
|||
}
|
||||
o = elm_widget_parent_widget_get(o);
|
||||
}
|
||||
while (o);
|
||||
|
||||
return o;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue