mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
gobject: Use new g_newa0() function
Replace old `g_newa()` and `memset()` with `g_newa0()`
This commit is contained in:
parent
b321bf70d7
commit
1529c2ca4d
@ -2163,8 +2163,7 @@ g_object_new_with_properties (GType object_type,
|
||||
params[count].pspec = pspec;
|
||||
|
||||
/* Init GValue */
|
||||
params[count].value = g_newa (GValue, 1);
|
||||
memset (params[count].value, 0, sizeof (GValue));
|
||||
params[count].value = g_newa0 (GValue, 1);
|
||||
g_value_init (params[count].value, G_VALUE_TYPE (&values[i]));
|
||||
|
||||
g_value_copy (&values[i], params[count].value);
|
||||
|
Loading…
Reference in New Issue
Block a user