summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2018-07-09 13:32:58 -0400
committerChris Michael <cp.michael@samsung.com>2018-07-09 13:32:58 -0400
commitee8d06c806f1399de1313b0e323571c74ddaf548 (patch)
tree7dfd10736dbcec300b4158bb70fbcaf8b31b3772
parentb14ef34ab8791a0a730b8d4fea6bc84cdee1ec9c (diff)
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
-rw-r--r--src/lib/elementary/efl_ui_win.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index cead522d10..c1477b703d 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -2655,7 +2655,7 @@ _elm_win_focus_target_get(Evas_Object *obj)
2655{ 2655{
2656 Evas_Object *o = obj; 2656 Evas_Object *o = obj;
2657 2657
2658 do 2658 while (o)
2659 { 2659 {
2660 if (elm_widget_is(o)) 2660 if (elm_widget_is(o))
2661 { 2661 {
@@ -2664,7 +2664,6 @@ _elm_win_focus_target_get(Evas_Object *obj)
2664 } 2664 }
2665 o = elm_widget_parent_widget_get(o); 2665 o = elm_widget_parent_widget_get(o);
2666 } 2666 }
2667 while (o);
2668 2667
2669 return o; 2668 return o;
2670} 2669}