summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2022-09-12 10:59:52 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2022-09-26 11:04:26 +0800
commitcc488945cdbf58c0c69a21cd7ca07e8737271caf (patch)
treef93899353e40a81df7b7b38bcc50dd5a2cf4b6e5
parent6b0aa77d23ac969c12eab00b178957a63befe5bd (diff)
downloadpango-cc488945cdbf58c0c69a21cd7ca07e8737271caf.tar.gz
pango-font-private.h: Fix build with DirectWrite
The recent additions to this file must be updated so that this header can be successfully consumed when building in C++ mode, i.e. with DirectWrite. Cast items as needed.
-rw-r--r--pango/pango-font-private.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pango-font-private.h b/pango/pango-font-private.h
index fbdad850..a77df662 100644
--- a/pango/pango-font-private.h
+++ b/pango/pango-font-private.h
@@ -69,7 +69,7 @@ static inline PangoVariant
pango_font_get_variant (PangoFont *font)
{
GTypeClass *klass = (GTypeClass *) PANGO_FONT_GET_CLASS (font);
- PangoFontClassPrivate *priv = g_type_class_get_private (klass, PANGO_TYPE_FONT);
+ PangoFontClassPrivate *priv = (PangoFontClassPrivate *) g_type_class_get_private (klass, PANGO_TYPE_FONT);
if (priv->get_variant)
return priv->get_variant (font);
else