From 079670f3cc18c2e93cab1f8ffa265f288aaf26b5 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 20 Jun 2007 20:27:55 +0000 Subject: Add G_UNLIKELY() to type registration block in _get_type() functions. 2007-06-20 Behdad Esfahbod * pango/fonts.c (pango_font_description_get_type), (pango_font_metrics_get_type): * pango/glyphstring.c (pango_glyph_string_get_type): * pango/pango-attributes.c (pango_attr_list_get_type): * pango/pango-color.c (pango_color_get_type): * pango/pango-item.c (pango_item_get_type): * pango/pango-language.c (pango_language_get_type): * pango/pango-layout.c (pango_layout_line_get_type), (pango_layout_iter_get_type): * pango/pango-matrix.c (pango_matrix_get_type): * pango/pango-ot-info.c (pango_ot_info_get_type): * pango/pango-ot-ruleset.c (pango_ot_ruleset_get_type): * pango/pango-tabs.c (pango_tab_array_get_type): * pango/pangoatsui-fontmap.c (pango_atsui_family_get_type), (pango_atsui_face_get_type): * pango/pangofc-fontmap.c (pango_fc_face_get_type), (pango_fc_family_get_type): * pango/pangowin32-fontmap.c (pango_win32_family_get_type), (pango_win32_face_get_type): * pango/pangox-fontmap.c (pango_x_font_map_get_type), (pango_x_face_get_type), (pango_x_family_get_type): * pango/pangox.c (pango_x_font_get_type): Add G_UNLIKELY() to type registration block in _get_type() functions. svn path=/trunk/; revision=2364 --- pango/pango-attributes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pango/pango-attributes.c') diff --git a/pango/pango-attributes.c b/pango/pango-attributes.c index ba3973dd..e054b14d 100644 --- a/pango/pango-attributes.c +++ b/pango/pango-attributes.c @@ -1030,7 +1030,7 @@ pango_attr_list_get_type (void) { static GType our_type = 0; - if (our_type == 0) + if (G_UNLIKELY (our_type == 0)) our_type = g_boxed_type_register_static (I_("PangoAttrList"), (GBoxedCopyFunc) pango_attr_list_copy, (GBoxedFreeFunc) pango_attr_list_unref); -- cgit v1.2.1