Don't initialize struct members with function calls. (#349952)
authorMatthias Clasen <mclasen@redhat.com>
Sun, 6 Aug 2006 00:57:36 +0000 (00:57 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Sun, 6 Aug 2006 00:57:36 +0000 (00:57 +0000)
2006-08-05  Matthias Clasen  <mclasen@redhat.com>

* gparamspecs.c (g_param_spec_types_init): Don't initialize
struct members with function calls.  (#349952)

gobject/ChangeLog
gobject/gparamspecs.c

index 597838a2e6f69f79bacc196e8c0523e1946540f0..db70e892f6ba29f4cf6d0172e390f02517c96c1e 100644 (file)
@@ -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>
 
        * === Released 2.12.1 ===
index 953bb8d0abd5a47bc5668274ab2f1467a717a7ff..78bb7cb956b9ddf458f985aad9c0c06c1d952146 100644 (file)
@@ -1453,11 +1453,12 @@ g_param_spec_types_init (void)
   /* G_TYPE_PARAM_GTYPE
    */
   {
+    GType value_type = G_TYPE_GTYPE;
     GParamSpecTypeInfo pspec_info = {
       sizeof (GParamSpecGType),        /* instance_size */
       0,                       /* n_preallocs */
       param_gtype_init,                /* instance_init */
-      G_TYPE_GTYPE,            /* value_type */
+      value_type,              /* value_type */
       NULL,                    /* finalize */
       param_gtype_set_default, /* value_set_default */
       param_gtype_validate,    /* value_validate */