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:
Xavi Artigas 2018-07-09 13:32:58 -04:00 committed by Chris Michael
parent b14ef34ab8
commit ee8d06c806
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}