Commit 8d325001 authored by Javier Jardón's avatar Javier Jardón

gio: Use G_VALUE_INIT

parent f07201c3
......@@ -87,8 +87,8 @@ fd_source_closure_callback (int fd,
{
GClosure *closure = data;
GValue params[2] = { { 0, }, { 0, } };
GValue result_value = { 0, };
GValue params[2] = { G_VALUE_INIT, G_VALUE_INIT };
GValue result_value = G_VALUE_INIT;
gboolean result;
g_value_init (&result_value, G_TYPE_BOOLEAN);
......
......@@ -679,8 +679,8 @@ cancellable_source_closure_callback (GCancellable *cancellable,
{
GClosure *closure = data;
GValue params = { 0, };
GValue result_value = { 0, };
GValue params = G_VALUE_INIT;
GValue result_value = G_VALUE_INIT;
gboolean result;
g_value_init (&result_value, G_TYPE_BOOLEAN);
......
......@@ -2086,7 +2086,7 @@ class CodeGenerator:
' guint num_extra;\n'
' guint n;\n'
' guint signal_id;\n'
' GValue return_value = {0};\n'
' GValue return_value = G_VALUE_INIT;\n'
%(i.name_lower, i.camel_name, i.ns_upper, i.name_upper))
self.c.write(' info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation);\n'
' g_assert (info != NULL);\n'
......@@ -2149,7 +2149,7 @@ class CodeGenerator:
' gpointer user_data)\n'
'{\n'
' %sSkeleton *skeleton = %s%s_SKELETON (user_data);\n'
' GValue value = {0};\n'
' GValue value = G_VALUE_INIT;\n'
' GParamSpec *pspec;\n'
' _ExtendedGDBusPropertyInfo *info;\n'
' GVariant *ret;\n'
......@@ -2186,7 +2186,7 @@ class CodeGenerator:
' gpointer user_data)\n'
'{\n'
' %sSkeleton *skeleton = %s%s_SKELETON (user_data);\n'
' GValue value = {0};\n'
' GValue value = G_VALUE_INIT;\n'
' GParamSpec *pspec;\n'
' _ExtendedGDBusPropertyInfo *info;\n'
' gboolean ret;\n'
......
......@@ -675,7 +675,7 @@ own_with_closures_on_bus_acquired (GDBusConnection *connection,
gpointer user_data)
{
OwnNameData *data = user_data;
GValue params[2] = { { 0, }, { 0, } };
GValue params[2] = { G_VALUE_INIT, G_VALUE_INIT };
g_value_init (&params[0], G_TYPE_DBUS_CONNECTION);
g_value_set_object (&params[0], connection);
......@@ -695,7 +695,7 @@ own_with_closures_on_name_acquired (GDBusConnection *connection,
gpointer user_data)
{
OwnNameData *data = user_data;
GValue params[2] = { { 0, }, { 0, } };
GValue params[2] = { G_VALUE_INIT, G_VALUE_INIT };
g_value_init (&params[0], G_TYPE_DBUS_CONNECTION);
g_value_set_object (&params[0], connection);
......@@ -715,7 +715,7 @@ own_with_closures_on_name_lost (GDBusConnection *connection,
gpointer user_data)
{
OwnNameData *data = user_data;
GValue params[2] = { { 0, }, { 0, } };
GValue params[2] = { G_VALUE_INIT, G_VALUE_INIT };
g_value_init (&params[0], G_TYPE_DBUS_CONNECTION);
g_value_set_object (&params[0], connection);
......
......@@ -687,7 +687,7 @@ watch_with_closures_on_name_appeared (GDBusConnection *connection,
gpointer user_data)
{
WatchNameData *data = user_data;
GValue params[3] = { { 0, }, { 0, }, { 0, } };
GValue params[3] = { G_VALUE_INIT, G_VALUE_INIT, G_VALUE_INIT };
g_value_init (&params[0], G_TYPE_DBUS_CONNECTION);
g_value_set_object (&params[0], connection);
......@@ -711,7 +711,7 @@ watch_with_closures_on_name_vanished (GDBusConnection *connection,
gpointer user_data)
{
WatchNameData *data = user_data;
GValue params[2] = { { 0, }, { 0, } };
GValue params[2] = { G_VALUE_INIT, G_VALUE_INIT };
g_value_init (&params[0], G_TYPE_DBUS_CONNECTION);
g_value_set_object (&params[0], connection);
......
......@@ -246,8 +246,8 @@ pollable_source_closure_callback (GObject *stream,
{
GClosure *closure = data;
GValue param = { 0, };
GValue result_value = { 0, };
GValue param = G_VALUE_INIT;
GValue result_value = G_VALUE_INIT;
gboolean result;
g_value_init (&result_value, G_TYPE_BOOLEAN);
......
......@@ -2522,7 +2522,7 @@ g_settings_binding_key_changed (GSettings *settings,
gpointer user_data)
{
GSettingsBinding *binding = user_data;
GValue value = { 0, };
GValue value = G_VALUE_INIT;
GVariant *variant;
g_assert (settings == binding->info.settings);
......@@ -2582,7 +2582,7 @@ g_settings_binding_property_changed (GObject *object,
gpointer user_data)
{
GSettingsBinding *binding = user_data;
GValue value = { 0, };
GValue value = G_VALUE_INIT;
GVariant *variant;
g_assert (object == binding->object);
......
......@@ -2536,8 +2536,8 @@ socket_source_closure_callback (GSocket *socket,
{
GClosure *closure = data;
GValue params[2] = { { 0, }, { 0, } };
GValue result_value = { 0, };
GValue params[2] = { G_VALUE_INIT, G_VALUE_INIT };
GValue result_value = G_VALUE_INIT;
gboolean result;
g_value_init (&result_value, G_TYPE_BOOLEAN);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment