mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-03 14:42:10 +01:00
Don't initialize struct members with function calls. (#349952)
2006-08-05 Matthias Clasen <mclasen@redhat.com> * gparamspecs.c (g_param_spec_types_init): Don't initialize struct members with function calls. (#349952)
This commit is contained in:
parent
14ae5dba0c
commit
1482f7b139
@ -1,3 +1,8 @@
|
|||||||
|
2006-08-05 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gparamspecs.c (g_param_spec_types_init): Don't initialize
|
||||||
|
struct members with function calls. (#349952)
|
||||||
|
|
||||||
2006-07-22 Matthias Clasen <mclasen@redhat.com>
|
2006-07-22 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* === Released 2.12.1 ===
|
* === Released 2.12.1 ===
|
||||||
|
@ -1453,11 +1453,12 @@ g_param_spec_types_init (void)
|
|||||||
/* G_TYPE_PARAM_GTYPE
|
/* G_TYPE_PARAM_GTYPE
|
||||||
*/
|
*/
|
||||||
{
|
{
|
||||||
|
GType value_type = G_TYPE_GTYPE;
|
||||||
GParamSpecTypeInfo pspec_info = {
|
GParamSpecTypeInfo pspec_info = {
|
||||||
sizeof (GParamSpecGType), /* instance_size */
|
sizeof (GParamSpecGType), /* instance_size */
|
||||||
0, /* n_preallocs */
|
0, /* n_preallocs */
|
||||||
param_gtype_init, /* instance_init */
|
param_gtype_init, /* instance_init */
|
||||||
G_TYPE_GTYPE, /* value_type */
|
value_type, /* value_type */
|
||||||
NULL, /* finalize */
|
NULL, /* finalize */
|
||||||
param_gtype_set_default, /* value_set_default */
|
param_gtype_set_default, /* value_set_default */
|
||||||
param_gtype_validate, /* value_validate */
|
param_gtype_validate, /* value_validate */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user