summaryrefslogtreecommitdiff
path: root/pango/pango-matrix.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2007-06-20 20:27:55 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2007-06-20 20:27:55 +0000
commit079670f3cc18c2e93cab1f8ffa265f288aaf26b5 (patch)
treeba34e49443392b5cd138e846a9c5e4221270cfc1 /pango/pango-matrix.c
parentb155319f07db4460a1e4f683c78e9e5182552f3f (diff)
downloadpango-079670f3cc18c2e93cab1f8ffa265f288aaf26b5.tar.gz
Add G_UNLIKELY() to type registration block in _get_type() functions.
2007-06-20 Behdad Esfahbod <behdad@gnome.org> * 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
Diffstat (limited to 'pango/pango-matrix.c')
-rw-r--r--pango/pango-matrix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pango-matrix.c b/pango/pango-matrix.c
index 971e6a61..828d4f90 100644
--- a/pango/pango-matrix.c
+++ b/pango/pango-matrix.c
@@ -31,7 +31,7 @@ pango_matrix_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_("PangoMatrix"),
(GBoxedCopyFunc) pango_matrix_copy,
(GBoxedFreeFunc) pango_matrix_free);