Evas textblock: Minor code cleanup.
authorTom Hacohen <tom@stosb.com>
Wed, 2 Apr 2014 09:06:57 +0000 (10:06 +0100)
committerTom Hacohen <tom@stosb.com>
Wed, 2 Apr 2014 09:06:57 +0000 (10:06 +0100)
Moved a global variable into a local scope, as it's no longer needed globally.

src/lib/evas/canvas/evas_object_textblock.c

index c977434..785d687 100644 (file)
@@ -4325,13 +4325,10 @@ _layout_get_mixedwrap(Ctxt *c, Evas_Object_Textblock_Format *fmt,
          breaks);
 }
 
-/* Should be moved inside _layout_ellipsis_item_new once we fix the hack in
- * textblock render */
-static const Eina_Unicode _ellip_str[2] = { 0x2026, '\0' };
-
 static Evas_Object_Textblock_Text_Item *
 _layout_ellipsis_item_new(Ctxt *c, const Evas_Object_Textblock_Item *cur_it)
 {
+   const Eina_Unicode _ellip_str[2] = { 0x2026, '\0' };
    Evas_Object_Textblock_Text_Item *ellip_ti;
    Evas_Script_Type script;
    Evas_Font_Instance *script_fi = NULL, *cur_fi;