summaryrefslogtreecommitdiff
path: root/pango/pangofc-font.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-09-01 12:08:14 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-09-17 19:20:36 -0400
commit7dd4a84b99af85de61a3d216bf50bca0d11683d3 (patch)
tree916abede117eed431e8af498ecd2e613f4fbf48e /pango/pangofc-font.c
parent54b593ec3e7829583ce2fec3fe22dff512db07fb (diff)
downloadpango-7dd4a84b99af85de61a3d216bf50bca0d11683d3.tar.gz
Small const correctness fix
clang complains that initializing 'FcPattern *' (aka 'struct _FcPattern *') with an expression of type 'const FcPattern *' (aka 'const struct _FcPattern *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] FcPattern *pattern = pango_fc_font_key_get_pattern (key);
Diffstat (limited to 'pango/pangofc-font.c')
-rw-r--r--pango/pangofc-font.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pangofc-font.c b/pango/pangofc-font.c
index 4b6a34f7..7456cd9e 100644
--- a/pango/pangofc-font.c
+++ b/pango/pangofc-font.c
@@ -993,7 +993,7 @@ pango_fc_font_create_hb_font (PangoFont *font)
if (key)
{
- FcPattern *pattern = pango_fc_font_key_get_pattern (key);
+ const FcPattern *pattern = pango_fc_font_key_get_pattern (key);
const char *variations;
int index;
unsigned int n_axes;