[glib] gobject: Mark a helper variable as const



commit 6d030ea0aef634cfdd6b82c9f213c1061b68709a
Author: Philip Withnall <philip withnall collabora co uk>
Date:   Wed Mar 4 08:52:22 2015 +0000

    gobject: Mark a helper variable as const
    
    It’s only used for argv values, which are not modified here.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=614684

 gobject/gobject-query.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gobject/gobject-query.c b/gobject/gobject-query.c
index e93943f..b5dff42 100644
--- a/gobject/gobject-query.c
+++ b/gobject/gobject-query.c
@@ -120,7 +120,7 @@ main (gint   argc,
   gboolean gen_froots = 0;
   gboolean gen_tree = 0;
   gint i;
-  gchar *iindent = "";
+  const gchar *iindent = "";
 
   f_out = stdout;
   


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