diff options
author | Javier Jardón <jjardon@gnome.org> | 2011-09-30 16:31:04 +0100 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2011-10-15 16:45:16 +0100 |
commit | 0853ce3077d577a5062f224918a115a2e52803af (patch) | |
tree | 0a39d144628198ba8b7182456a03359470353f9a /gtk/gtktextbufferserialize.c | |
parent | 616afadd78c945bb7ac73ff27417b6ff5d66bd05 (diff) | |
download | gtk+-0853ce3077d577a5062f224918a115a2e52803af.tar.gz |
Use G_VALUE_INIT
Instead of an explicit { 0, } when declaring the variable.
Diffstat (limited to 'gtk/gtktextbufferserialize.c')
-rw-r--r-- | gtk/gtktextbufferserialize.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gtktextbufferserialize.c b/gtk/gtktextbufferserialize.c index e4b4f73006..c750a80f0a 100644 --- a/gtk/gtktextbufferserialize.c +++ b/gtk/gtktextbufferserialize.c @@ -54,7 +54,7 @@ serialize_value (GValue *value) { if (g_value_type_transformable (value->g_type, G_TYPE_STRING)) { - GValue text_value = { 0 }; + GValue text_value = G_VALUE_INIT; gchar *tmp; g_value_init (&text_value, G_TYPE_STRING); @@ -85,7 +85,7 @@ deserialize_value (const gchar *str, { if (g_value_type_transformable (G_TYPE_STRING, value->g_type)) { - GValue text_value = { 0 }; + GValue text_value = G_VALUE_INIT; gboolean retval; g_value_init (&text_value, G_TYPE_STRING); @@ -313,7 +313,7 @@ serialize_tag (gpointer key, for (i = 0; i < n_pspecs; i++) { - GValue value = { 0 }; + GValue value = G_VALUE_INIT; gchar *tmp, *tmp2; if (!(pspecs[i]->flags & G_PARAM_READABLE) || @@ -1164,7 +1164,7 @@ parse_attr_element (GMarkupParseContext *context, { const gchar *name, *type, *value; GType gtype; - GValue gvalue = { 0 }; + GValue gvalue = G_VALUE_INIT; GParamSpec *pspec; g_assert (peek_state (info) == STATE_TAG); |