gobject: remove -DG_DISABLE_CONST_RETURNS

GObject had a few cases of depending on G_CONST_RETURN not being defined
to 'const'.  Remove those in preparation for deprecation of
G_CONST_RETURN.
This commit is contained in:
Ryan Lortie
2011-06-09 11:11:30 -04:00
parent 5794393c6f
commit 8f21e8145c
6 changed files with 9 additions and 9 deletions

View File

@@ -421,7 +421,8 @@ g_param_spec_internal (GType param_type,
if (flags & G_PARAM_STATIC_NAME)
{
pspec->name = g_intern_static_string (name);
/* pspec->name is not freed if (flags & G_PARAM_STATIC_NAME) */
pspec->name = (gchar *) g_intern_static_string (name);
if (!is_canonical (pspec->name))
g_warning ("G_PARAM_STATIC_NAME used with non-canonical pspec name: %s", pspec->name);
}