Enlightenment CVS committal Author : tsauerbeck Project : e17 Module : libs/edje
Dir : e17/libs/edje/src/lib Modified Files: edje_calc.c Log Message: optimization. to check whether a string is empty (len == 0), we don't need to run strlen, checking whether the first char is the terminating NUL is enough =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/edje/src/lib/edje_calc.c,v retrieving revision 1.63 retrieving revision 1.64 diff -u -3 -r1.63 -r1.64 --- edje_calc.c 31 Mar 2005 17:26:31 -0000 1.63 +++ edje_calc.c 31 Mar 2005 17:39:31 -0000 1.64 @@ -465,7 +465,7 @@ if (ep->text.source) { if ((ep->text.source->chosen_description->text.text_class) && - (strlen(ep->text.source->chosen_description->text.text_class) > 0)) + (*ep->text.source->chosen_description->text.text_class)) { Edje_Text_Class *tc; @@ -479,8 +479,7 @@ } else { - if ((chosen_desc->text.text_class) && - (strlen(chosen_desc->text.text_class) > 0)) + if ((chosen_desc->text.text_class) && (*chosen_desc->text.text_class)) { Edje_Text_Class *tc; @@ -759,7 +758,7 @@ params->color3.b = desc->color3.b; params->color3.a = desc->color3.a; - if ((desc->color_class) && (strlen(desc->color_class) > 0)) + if ((desc->color_class) && (*desc->color_class)) { Edje_Color_Class *cc; ------------------------------------------------------- This SF.net email is sponsored by Demarc: A global provider of Threat Management Solutions. Download our HomeAdmin security software for free today! http://www.demarc.com/info/Sentarus/hamr30 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs