forked from enlightenment/efl
Evas: textblock - made _format_fill faster.
SVN revision: 51032
This commit is contained in:
parent
eda4539c2c
commit
3ec81c0b3e
|
@ -1567,11 +1567,8 @@ _format_fill(Evas_Object *obj, Evas_Object_Textblock_Format *fmt, const char *st
|
|||
if (_format_is_param(item))
|
||||
{
|
||||
const char *key = NULL, *val = NULL;
|
||||
char *tmp = alloca(s - item + 1);
|
||||
strncpy(tmp, item, s - item);
|
||||
tmp[s - item] = '\0';
|
||||
|
||||
_format_param_parse(tmp, &key, &val);
|
||||
_format_param_parse(item, &key, &val);
|
||||
_format_command(obj, fmt, key, val);
|
||||
eina_stringshare_del(key);
|
||||
eina_stringshare_del(val);
|
||||
|
|
Loading…
Reference in New Issue