From: mickeyl Date: Sat, 1 Nov 2008 20:55:22 +0000 (+0000) Subject: evas: rename 'delete' parameter in evas_object_table_clear to 'clear'. X-Git-Tag: accepted/2.0/20130306.225542~242^2~2723 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3bac5ed642b178d3cb7b308ecbc01656859531ad;p=profile%2Fivi%2Fevas.git evas: rename 'delete' parameter in evas_object_table_clear to 'clear'. delete is a reserved keyword in C++. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@37383 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/Evas.h b/src/lib/Evas.h index 2af0d7e..15dd255 100644 --- a/src/lib/Evas.h +++ b/src/lib/Evas.h @@ -1063,7 +1063,7 @@ extern "C" { EAPI Evas_Bool evas_object_table_pack(Evas_Object *o, Evas_Object *child, unsigned short col, unsigned short row, unsigned short colspan, unsigned short rowspan); EAPI Evas_Bool evas_object_table_unpack(Evas_Object *o, Evas_Object *child); - EAPI void evas_object_table_clear(Evas_Object *o, Evas_Bool delete); + EAPI void evas_object_table_clear(Evas_Object *o, Evas_Bool clear); EAPI void evas_object_table_col_row_size_get(const Evas_Object *o, int *cols, int *rows); diff --git a/src/lib/canvas/evas_object_table.c b/src/lib/canvas/evas_object_table.c index 88fea7c..e4bab8d 100644 --- a/src/lib/canvas/evas_object_table.c +++ b/src/lib/canvas/evas_object_table.c @@ -1185,10 +1185,10 @@ evas_object_table_unpack(Evas_Object *o, Evas_Object *child) /** * Faster way to remove all child objects. * - * @param delete if true, it will delete just removed children. + * @param clear if true, it will delete just removed children. */ void -evas_object_table_clear(Evas_Object *o, Evas_Bool delete) +evas_object_table_clear(Evas_Object *o, Evas_Bool clear) { EVAS_OBJECT_TABLE_DATA_GET_OR_RETURN(o, priv); Eina_List *l; @@ -1200,7 +1200,7 @@ evas_object_table_clear(Evas_Object *o, Evas_Bool delete) _evas_object_table_child_disconnect(o, opt->obj); _evas_object_table_option_del(opt->obj); evas_object_smart_member_del(opt->obj); - if (delete) + if (clear) evas_object_del(opt->obj); free(opt); l = eina_list_remove_list(l, l);