[pango/matthiasc/for-master: 8/10] Small const correctness fix




commit 7dd4a84b99af85de61a3d216bf50bca0d11683d3
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]