gail: avoid formatting string attribute values
Duplicate Pango string attribute values directly instead of routing an unchanged string through g_strdup_printf. This preserves the allocated result while avoiding unnecessary format parsing and varargs handling.
This commit is contained in:
parent
6ad2ee66d9
commit
240b7d0a71
1 changed files with 1 additions and 1 deletions
|
|
@ -251,7 +251,7 @@ gail_misc_layout_get_run_attributes (AtkAttributeSet *attrib_set,
|
|||
if ((pango_string = (PangoAttrString*) pango_attr_iterator_get (iter,
|
||||
PANGO_ATTR_FAMILY)) != NULL)
|
||||
{
|
||||
value = g_strdup_printf("%s", pango_string->value);
|
||||
value = g_strdup (pango_string->value);
|
||||
attrib_set = gail_misc_add_attribute (attrib_set,
|
||||
ATK_TEXT_ATTR_FAMILY_NAME,
|
||||
value);
|
||||
|
|
|
|||
Loading…
Reference in a new issue