elm_diskpicker: save (list_len - 3) strlen calls
authorBruno Dilly <bdilly@profusion.mobi>
Tue, 19 Oct 2010 10:48:11 +0000 (10:48 +0000)
committerBruno Dilly <bdilly@profusion.mobi>
Tue, 19 Oct 2010 10:48:11 +0000 (10:48 +0000)
demarchi-- for reducing performance just to solve a comparison between
signed and unsigned.

SVN revision: 53591

src/lib/elm_diskpicker.c

index e7653609391a19907e05a2c8ba6142599d63e032..77132b9837b07067bc9b8fda210163119063a993 100644 (file)
@@ -388,13 +388,15 @@ _check_string(void *data)
 
    EINA_LIST_FOREACH(list, l, it)
      {
-        int len = strlen(it->label);
         Evas_Coord x, w;
+        int len;
         evas_object_geometry_get(it->base.view, &x, NULL, &w, NULL);
         /* item not visible */
         if (x + w <= ox || x >= ox + ow)
           continue;
 
+        len = strlen(it->label);
+
         if (x <= ox + 5)
              edje_object_signal_emit(it->base.view, "elm,state,left_side",
                                      "elm");