[pango/preferred-languages: 3/8] Small const correctness fix
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/preferred-languages: 3/8] Small const correctness fix
- Date: Tue, 8 Sep 2020 21:02:48 +0000 (UTC)
commit 15276a611428898719c89daf5cfce5c74b6af73c
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Sep 1 12:08:14 2020 -0400
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);
pango/pangofc-font.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]