diff options
author | Manish Singh <yosh@gimp.org> | 2002-10-14 22:50:48 +0000 |
---|---|---|
committer | Manish Singh <yosh@src.gnome.org> | 2002-10-14 22:50:48 +0000 |
commit | d038fdbce6ea8f38b7998b298dc6daf8cf0d9d05 (patch) | |
tree | a80fdf5aaad5d9a63d370c1fe553f400939d7bcc /pango/pangox-fontmap.c | |
parent | 347ccb30f3c8c3b029202952ccb133db70f4046f (diff) | |
download | pango-d038fdbce6ea8f38b7998b298dc6daf8cf0d9d05.tar.gz |
Get rid of unnecessary casts for g_object_{ref,unref}
Mon Oct 14 15:39:41 2002 Manish Singh <yosh@gimp.org>
* pango/pango-context.c pango/pango-layout.c pango/pangoft2.c
pango/pangowin32-fontmap.c pango/pangowin32.c pango/pangox-fontmap.c
pango/pangox.c pango/pangoxft-font.c pango/pangoxft-fontmap.c
pango/testfonts.c pango/opentype/pango-ot-ruleset.c:
Get rid of unnecessary casts for g_object_{ref,unref}
Diffstat (limited to 'pango/pangox-fontmap.c')
-rw-r--r-- | pango/pangox-fontmap.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pango/pangox-fontmap.c b/pango/pangox-fontmap.c index 9ff8ee93..805c1f27 100644 --- a/pango/pangox-fontmap.c +++ b/pango/pangox-fontmap.c @@ -348,7 +348,7 @@ pango_x_shutdown_display (Display *display) { fontmaps = g_list_delete_link (fontmaps, tmp_list); pango_x_fontmap_cache_clear (xfontmap); - g_object_unref (G_OBJECT (xfontmap)); + g_object_unref (xfontmap); return; } @@ -482,7 +482,7 @@ pango_x_font_map_load_font (PangoFontMap *fontmap, { result = (PangoFont *)xfont; - g_object_ref (G_OBJECT (result)); + g_object_ref (result); if (xfont->in_cache) pango_x_fontmap_cache_remove (fontmap, xfont); @@ -1366,10 +1366,10 @@ pango_x_fontmap_cache_add (PangoFontMap *fontmap, if (xfontmap->freed_fonts->length == MAX_FREED_FONTS) { PangoXFont *old_font = g_queue_pop_tail (xfontmap->freed_fonts); - g_object_unref (G_OBJECT (old_font)); + g_object_unref (old_font); } - g_object_ref (G_OBJECT (xfont)); + g_object_ref (xfont); g_queue_push_head (xfontmap->freed_fonts, xfont); xfont->in_cache = TRUE; } @@ -1392,7 +1392,7 @@ pango_x_fontmap_cache_remove (PangoFontMap *fontmap, xfontmap->freed_fonts->length--; xfont->in_cache = FALSE; - g_object_unref (G_OBJECT (xfont)); + g_object_unref (xfont); } static void |