cast away any constness on assignment.

Tue Mar 22 14:15:23 2005  Manish Singh <yosh@gimp.org>

        * gparam.c (g_param_spec_internal): cast away any constness on
        assignment.
This commit is contained in:
Manish Singh 2005-03-22 22:16:10 +00:00 committed by Manish Singh
parent 1fc2daa443
commit 4635159309
2 changed files with 10 additions and 5 deletions

View File

@ -1,3 +1,8 @@
Tue Mar 22 14:15:23 2005 Manish Singh <yosh@gimp.org>
* gparam.c (g_param_spec_internal): cast away any constness on
assignment.
2005-03-21 Matthias Clasen <mclasen@redhat.com>
* glib-mkenums.in: Avoid forcing extra newlines when using

View File

@ -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);