From: mike_m Date: Mon, 10 Oct 2011 08:33:13 +0000 (+0000) Subject: elementary: Declare variables at top of function X-Git-Tag: REL_F_I9500_20120323_1~17^2~1676 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cecf1a9d4cf4d03b40c2cd4099e4cb0ff4b830e9;p=framework%2Fuifw%2Felementary.git elementary: Declare variables at top of function Signed-off-by: Mike McCormack git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@63951 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/elm_conform.c b/src/lib/elm_conform.c index 6cfe23c..b632175 100644 --- a/src/lib/elm_conform.c +++ b/src/lib/elm_conform.c @@ -188,12 +188,13 @@ static void _conformant_part_sizing_eval(Evas_Object *obj, Conformant_Part_Type part_type) { Ecore_X_Window zone = 0, xwin; + Evas_Object *top; int sx = -1, sy = -1, sw = -1, sh = -1; Widget_Data *wd = elm_widget_data_get(obj); if (!wd) return; - Evas_Object *top = elm_widget_top_get(obj); + top = elm_widget_top_get(obj); #ifdef HAVE_ELEMENTARY_X xwin = elm_win_xwindow_get(top); if (xwin)