diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2007-06-20 20:27:55 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2007-06-20 20:27:55 +0000 |
commit | 079670f3cc18c2e93cab1f8ffa265f288aaf26b5 (patch) | |
tree | ba34e49443392b5cd138e846a9c5e4221270cfc1 /pango/pango-color.c | |
parent | b155319f07db4460a1e4f683c78e9e5182552f3f (diff) | |
download | pango-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-color.c')
-rw-r--r-- | pango/pango-color.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pango-color.c b/pango/pango-color.c index b469e83c..beae87fa 100644 --- a/pango/pango-color.c +++ b/pango/pango-color.c @@ -32,7 +32,7 @@ pango_color_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_("PangoColor"), (GBoxedCopyFunc) pango_color_copy, (GBoxedFreeFunc) pango_color_free); |