mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-31 22:23:39 +02:00
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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user