summaryrefslogtreecommitdiff
path: root/pango/pangoft2.c
diff options
context:
space:
mode:
authorManish Singh <yosh@gimp.org>2002-10-14 22:50:48 +0000
committerManish Singh <yosh@src.gnome.org>2002-10-14 22:50:48 +0000
commitd038fdbce6ea8f38b7998b298dc6daf8cf0d9d05 (patch)
treea80fdf5aaad5d9a63d370c1fe553f400939d7bcc /pango/pangoft2.c
parent347ccb30f3c8c3b029202952ccb133db70f4046f (diff)
downloadpango-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/pangoft2.c')
-rw-r--r--pango/pangoft2.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pango/pangoft2.c b/pango/pangoft2.c
index 0851840c..b84232ae 100644
--- a/pango/pangoft2.c
+++ b/pango/pangoft2.c
@@ -107,7 +107,7 @@ _pango_ft2_font_new (PangoFontMap *fontmap,
ft2font->fontmap = fontmap;
ft2font->font_pattern = pattern;
- g_object_ref (G_OBJECT (fontmap));
+ g_object_ref (fontmap);
ft2font->description = _pango_ft2_font_desc_from_pattern (pattern, TRUE);
ft2font->face = NULL;
@@ -670,8 +670,8 @@ pango_ft2_font_get_metrics (PangoFont *font,
info->metrics->approximate_digit_width = extents.width / 10;
- g_object_unref (G_OBJECT (layout));
- g_object_unref (G_OBJECT (context));
+ g_object_unref (layout);
+ g_object_unref (context);
}
return pango_font_metrics_ref (info->metrics);
@@ -729,7 +729,7 @@ pango_ft2_font_finalize (GObject *object)
pango_font_description_free (ft2font->description);
FcPatternDestroy (ft2font->font_pattern);
- g_object_unref (G_OBJECT (ft2font->fontmap));
+ g_object_unref (ft2font->fontmap);
g_slist_foreach (ft2font->metrics_by_lang, (GFunc)free_metrics_info, NULL);
g_slist_free (ft2font->metrics_by_lang);