[gtk+] Fix compilation warning: use const *gchar variable



commit aa63be61d9082f50523c3c2c796d5a8318673cfe
Author: Javier Jardón <jjardon gnome org>
Date:   Mon Jan 4 11:47:40 2010 +0100

    Fix compilation warning: use const *gchar variable
    
    https://bugzilla.gnome.org/show_bug.cgi?id=605090

 gtk/gtklabel.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index 98c77b0..eae8d5a 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -3697,7 +3697,7 @@ separate_uline_pattern (const gchar  *str,
                         gchar       **pattern)
 {
   gboolean underscore;
-  gchar *src;
+  const gchar *src;
   gchar *dest;
   gchar *pattern_dest;
 
@@ -3714,7 +3714,7 @@ separate_uline_pattern (const gchar  *str,
   while (*src)
     {
       gunichar c;
-      gchar *next_src;
+      const gchar *next_src;
 
       c = g_utf8_get_char (src);
       if (c == (gunichar)-1)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]