From: Manish Singh Date: Tue, 22 Mar 2005 22:16:10 +0000 (+0000) Subject: cast away any constness on assignment. X-Git-Tag: GLIB_2_7_0~108 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4635159309f4aadfec200bf34e1d8113a2c7348c;p=platform%2Fupstream%2Fglib.git cast away any constness on assignment. Tue Mar 22 14:15:23 2005 Manish Singh * gparam.c (g_param_spec_internal): cast away any constness on assignment. --- diff --git a/gobject/ChangeLog b/gobject/ChangeLog index d789fa9..4f0d5e3 100644 --- a/gobject/ChangeLog +++ b/gobject/ChangeLog @@ -1,3 +1,8 @@ +Tue Mar 22 14:15:23 2005 Manish Singh + + * gparam.c (g_param_spec_internal): cast away any constness on + assignment. + 2005-03-21 Matthias Clasen * glib-mkenums.in: Avoid forcing extra newlines when using diff --git a/gobject/gparam.c b/gobject/gparam.c index 630c6be..b6732cb 100644 --- a/gobject/gparam.c +++ b/gobject/gparam.c @@ -303,9 +303,9 @@ canonicalize_key (gchar *key) } static gboolean -is_canonical (gchar *key) +is_canonical (const gchar *key) { - gchar *p; + const gchar *p; for (p = key; *p != 0; p++) { @@ -338,7 +338,7 @@ g_param_spec_internal (GType param_type, pspec = (gpointer) g_type_create_instance (param_type); if ((flags & G_PARAM_STATIC_NAME)) - pspec->name = name; + pspec->name = (gchar *) name; else { pspec->name = g_strdup (name); @@ -346,12 +346,12 @@ g_param_spec_internal (GType param_type, } if (flags & G_PARAM_STATIC_NICK) - pspec->_nick = nick; + pspec->_nick = (gchar *) nick; else pspec->_nick = g_strdup (nick); if (flags & G_PARAM_STATIC_BLURB) - pspec->_blurb = blurb; + pspec->_blurb = (gchar *) blurb; else pspec->_blurb = g_strdup (blurb);