Edje: Fix 'variable may be used uninitialized' warning. Fix some

formatting.



SVN revision: 60196
This commit is contained in:
Christopher Michael 2011-06-10 16:41:45 +00:00
parent 969e12b320
commit d914f3d711
1 changed files with 9 additions and 6 deletions

View File

@ -712,7 +712,7 @@ _edje_anchor_mouse_out_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNU
static void
_anchors_update(Evas_Textblock_Cursor *c __UNUSED__, Evas_Object *o, Entry *en)
{
Eina_List *l, *ll, *range;
Eina_List *l, *ll, *range = NULL;
Evas_Coord x, y, w, h;
Evas_Object *smart, *clip;
Sel *sel;
@ -734,8 +734,10 @@ _anchors_update(Evas_Textblock_Cursor *c __UNUSED__, Evas_Object *o, Entry *en)
while (an->sel)
{
sel = an->sel->data;
en->rp->edje->subobjs = eina_list_remove(en->rp->edje->subobjs, sel->obj_bg);
en->rp->edje->subobjs = eina_list_remove(en->rp->edje->subobjs, sel->obj_fg);
en->rp->edje->subobjs =
eina_list_remove(en->rp->edje->subobjs, sel->obj_bg);
en->rp->edje->subobjs =
eina_list_remove(en->rp->edje->subobjs, sel->obj_fg);
if (sel->obj_bg) evas_object_del(sel->obj_bg);
if (sel->obj_fg) evas_object_del(sel->obj_fg);
if (sel->obj) evas_object_del(sel->obj);
@ -763,7 +765,8 @@ _anchors_update(Evas_Textblock_Cursor *c __UNUSED__, Evas_Object *o, Entry *en)
// for link anchors
else
{
range = evas_textblock_cursor_range_geometry_get(an->start, an->end);
range =
evas_textblock_cursor_range_geometry_get(an->start, an->end);
if (eina_list_count(range) != eina_list_count(an->sel))
{
while (an->sel)